summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/DebugUtil.cpp
diff options
context:
space:
mode:
authorJun Su <howard0su@gmail.com>2020-03-23 14:09:41 +0800
committerJun Su <howard0su@gmail.com>2020-03-25 07:57:14 +0800
commit81f8099cc674ab1146a2bd151f4f29269de12c33 (patch)
treef12d83e2b0b9e11f1db1416c06bbf74b4b81a5bb /Source/Core/VideoBackends/Software/DebugUtil.cpp
parent62707986b7c5c70f34767e70ddf06baf0b14a7c7 (diff)
Remove warnings of -Wsign-compare
Cast the variable to the coresponding type.
Diffstat (limited to 'Source/Core/VideoBackends/Software/DebugUtil.cpp')
-rw-r--r--Source/Core/VideoBackends/Software/DebugUtil.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/Software/DebugUtil.cpp b/Source/Core/VideoBackends/Software/DebugUtil.cpp
index 275cc6521d..ee77e3a5dd 100644
--- a/Source/Core/VideoBackends/Software/DebugUtil.cpp
+++ b/Source/Core/VideoBackends/Software/DebugUtil.cpp
@@ -136,9 +136,9 @@ static void DumpEfb(const std::string& filename)
u8* data = new u8[EFB_WIDTH * EFB_HEIGHT * 4];
u8* writePtr = data;
- for (int y = 0; y < EFB_HEIGHT; y++)
+ for (u32 y = 0; y < EFB_HEIGHT; y++)
{
- for (int x = 0; x < EFB_WIDTH; x++)
+ for (u32 x = 0; x < EFB_WIDTH; x++)
{
// ABGR to RGBA
const u32 sample = Common::swap32(EfbInterface::GetColor(x, y));