summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2020-04-28 13:36:21 +0200
committerGitHub <noreply@github.com>2020-04-28 13:36:21 +0200
commit0fe4985f8d9ca2f52a6a7b367e6dea3e5e97ba00 (patch)
treedcfe9c7d8db12bda0180b284c202ae34e859d917 /Source/Core/VideoBackends
parentd11a83e205ea187bc6dbc7c5c9162b3e5c087c26 (diff)
parent81f8099cc674ab1146a2bd151f4f29269de12c33 (diff)
Merge pull request #8689 from howard0su/cleanup_sign
Remove warnings of -Wsign-compare
Diffstat (limited to 'Source/Core/VideoBackends')
-rw-r--r--Source/Core/VideoBackends/Software/DebugUtil.cpp4
-rw-r--r--Source/Core/VideoBackends/Software/Rasterizer.cpp4
-rw-r--r--Source/Core/VideoBackends/Software/Tev.cpp4
3 files changed, 6 insertions, 6 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));
diff --git a/Source/Core/VideoBackends/Software/Rasterizer.cpp b/Source/Core/VideoBackends/Software/Rasterizer.cpp
index 352b995b9c..460188e20e 100644
--- a/Source/Core/VideoBackends/Software/Rasterizer.cpp
+++ b/Source/Core/VideoBackends/Software/Rasterizer.cpp
@@ -320,11 +320,11 @@ void DrawTriangleFrontFace(const OutputVertexData* v0, const OutputVertexData* v
scissorTop = 0;
s32 scissorRight = bpmem.scissorBR.x - xoff - 341;
- if (scissorRight > EFB_WIDTH)
+ if (scissorRight > s32(EFB_WIDTH))
scissorRight = EFB_WIDTH;
s32 scissorBottom = bpmem.scissorBR.y - yoff - 341;
- if (scissorBottom > EFB_HEIGHT)
+ if (scissorBottom > s32(EFB_HEIGHT))
scissorBottom = EFB_HEIGHT;
minx = std::max(minx, scissorLeft);
diff --git a/Source/Core/VideoBackends/Software/Tev.cpp b/Source/Core/VideoBackends/Software/Tev.cpp
index 8d03cacac2..c25e45b230 100644
--- a/Source/Core/VideoBackends/Software/Tev.cpp
+++ b/Source/Core/VideoBackends/Software/Tev.cpp
@@ -567,8 +567,8 @@ void Tev::Indirect(unsigned int stageNum, s32 s, s32 t)
void Tev::Draw()
{
- ASSERT(Position[0] >= 0 && Position[0] < EFB_WIDTH);
- ASSERT(Position[1] >= 0 && Position[1] < EFB_HEIGHT);
+ ASSERT(Position[0] >= 0 && Position[0] < s32(EFB_WIDTH));
+ ASSERT(Position[1] >= 0 && Position[1] < s32(EFB_HEIGHT));
INCSTAT(g_stats.this_frame.tev_pixels_in);