summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/Rasterizer.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/Rasterizer.cpp
parent62707986b7c5c70f34767e70ddf06baf0b14a7c7 (diff)
Remove warnings of -Wsign-compare
Cast the variable to the coresponding type.
Diffstat (limited to 'Source/Core/VideoBackends/Software/Rasterizer.cpp')
-rw-r--r--Source/Core/VideoBackends/Software/Rasterizer.cpp4
1 files changed, 2 insertions, 2 deletions
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);