diff --git a/PVRTCEncoder/src/Image.cpp b/PVRTCEncoder/src/Image.cpp index 196787b..baff30c 100644 --- a/PVRTCEncoder/src/Image.cpp +++ b/PVRTCEncoder/src/Image.cpp @@ -157,7 +157,7 @@ const Pixel &Image::GetPixel(int32 i, int32 j, EWrapMode wrapMode) { } } - while(i >= m_Width) { + while(i >= static_cast(m_Width)) { if(wrapMode == eWrapMode_Clamp) { i = m_Width - 1; } else { @@ -173,7 +173,7 @@ const Pixel &Image::GetPixel(int32 i, int32 j, EWrapMode wrapMode) { } } - while(j >= m_Height) { + while(j >= static_cast(m_Height)) { if(wrapMode == eWrapMode_Clamp) { j = m_Height - 1; } else { diff --git a/PVRTCEncoder/src/Pixel.h b/PVRTCEncoder/src/Pixel.h index 20792fe..2af0797 100644 --- a/PVRTCEncoder/src/Pixel.h +++ b/PVRTCEncoder/src/Pixel.h @@ -59,7 +59,7 @@ namespace PVRTCC { class Pixel { 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; }