From f280c2bb33b4ed05d571becdf57910b945759ec7 Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Sat, 31 Aug 2013 13:30:12 -0400 Subject: [PATCH] Fix some compiler warnings. --- PVRTCEncoder/src/Image.cpp | 4 ++-- PVRTCEncoder/src/Pixel.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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; }