mirror of
https://github.com/yuzu-emu/FasTC
synced 2024-11-23 15:34:05 +00:00
Fix some compiler warnings.
This commit is contained in:
parent
53a8c8e3cd
commit
f280c2bb33
2 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue