diff options
author | Rohit Nirmal <rohitnirmal9@gmail.com> | 2015-04-08 19:41:04 -0500 |
---|---|---|
committer | Rohit Nirmal <rohitnirmal9@gmail.com> | 2015-04-09 18:55:01 -0500 |
commit | f15c142c5e31422b5b9ec8de23f43d8091958fbd (patch) | |
tree | 1d5782bab56f56f435f51968cb743853e6cffda2 /src/video_core/rasterizer.cpp | |
parent | 8af5753da52d0ddf9487c94c6138469246399c62 (diff) |
Silence some -Wsign-compare warnings.
Diffstat (limited to 'src/video_core/rasterizer.cpp')
-rw-r--r-- | src/video_core/rasterizer.cpp | 4 |
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: |