Fix some compiler warnings.

This commit is contained in:
Pavel Krajcevski 2013-08-31 13:30:12 -04:00
parent 53a8c8e3cd
commit f280c2bb33
2 changed files with 3 additions and 3 deletions

View file

@ -157,7 +157,7 @@ const Pixel &Image::GetPixel(int32 i, int32 j, EWrapMode wrapMode) {
} }
} }
while(i >= m_Width) { while(i >= static_cast<int32>(m_Width)) {
if(wrapMode == eWrapMode_Clamp) { if(wrapMode == eWrapMode_Clamp) {
i = m_Width - 1; i = m_Width - 1;
} else { } else {
@ -173,7 +173,7 @@ const Pixel &Image::GetPixel(int32 i, int32 j, EWrapMode wrapMode) {
} }
} }
while(j >= m_Height) { while(j >= static_cast<int32>(m_Height)) {
if(wrapMode == eWrapMode_Clamp) { if(wrapMode == eWrapMode_Clamp) {
j = m_Height - 1; j = m_Height - 1;
} else { } else {

View file

@ -59,7 +59,7 @@ namespace PVRTCC {
class Pixel { class Pixel {
public: public:
Pixel(): m_R(0), m_G(0), m_B(0), m_A(0) { Pixel(): m_A(0), m_R(0), m_G(0), m_B(0) {
for(int i = 0; i < 4; i++) m_BitDepth[i] = 8; for(int i = 0; i < 4; i++) m_BitDepth[i] = 8;
} }