diff options
| author | 2015-04-17 20:22:03 -0400 | |
|---|---|---|
| committer | 2015-04-17 20:22:03 -0400 | |
| commit | 5e55a525d879b14853f7a1cd71601d2c4076670e (patch) | |
| tree | 74b50de3c4b3fcd218cc4e96b9d4d336aa0c15c6 /src/video_core/rasterizer.cpp | |
| parent | Merge pull request #699 from yuriks/event-use-lambda (diff) | |
| parent | Silence some -Wsign-compare warnings. (diff) | |
| download | yuzu-5e55a525d879b14853f7a1cd71601d2c4076670e.tar.gz yuzu-5e55a525d879b14853f7a1cd71601d2c4076670e.tar.xz yuzu-5e55a525d879b14853f7a1cd71601d2c4076670e.zip | |
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.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, | |||
| 342 | 342 | ||
| 343 | case Regs::TextureConfig::MirroredRepeat: | 343 | case Regs::TextureConfig::MirroredRepeat: |
| 344 | { | 344 | { |
| 345 | int coord = (int)((unsigned)val % (2 * size)); | 345 | unsigned int coord = ((unsigned)val % (2 * size)); |
| 346 | if (coord >= size) | 346 | if (coord >= size) |
| 347 | coord = 2 * size - 1 - coord; | 347 | coord = 2 * size - 1 - coord; |
| 348 | return coord; | 348 | return (int)coord; |
| 349 | } | 349 | } |
| 350 | 350 | ||
| 351 | default: | 351 | default: |