Silence some -Wsign-compare warnings.

This commit is contained in:
Rohit Nirmal 2015-04-08 19:41:04 -05:00
parent 8af5753da5
commit f15c142c5e
2 changed files with 4 additions and 4 deletions

View file

@ -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: