summaryrefslogtreecommitdiff
path: root/src/video_core/rasterizer.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-04-17 20:22:03 -0400
committerbunnei <bunneidev@gmail.com>2015-04-17 20:22:03 -0400
commit5e55a525d879b14853f7a1cd71601d2c4076670e (patch)
tree74b50de3c4b3fcd218cc4e96b9d4d336aa0c15c6 /src/video_core/rasterizer.cpp
parent1add98d7f8fd6ee9d7ff246276a7708a04693a35 (diff)
parentf15c142c5e31422b5b9ec8de23f43d8091958fbd (diff)
Merge pull request #691 from rohit-n/sign-compare
Silence some -Wsign-compare warnings.
Diffstat (limited to 'src/video_core/rasterizer.cpp')
-rw-r--r--src/video_core/rasterizer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/rasterizer.cpp b/src/video_core/rasterizer.cpp
index dd46f0ec3..6ec253601 100644
--- a/src/video_core/rasterizer.cpp
+++ b/src/video_core/rasterizer.cpp
@@ -342,10 +342,10 @@ static void ProcessTriangleInternal(const VertexShader::OutputVertex& v0,
case Regs::TextureConfig::MirroredRepeat:
{
- int coord = (int)((unsigned)val % (2 * size));
+ unsigned int coord = ((unsigned)val % (2 * size));
if (coord >= size)
coord = 2 * size - 1 - coord;
- return coord;
+ return (int)coord;
}
default: