mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
Remove warnings of -Wsign-compare
Cast the variable to the coresponding type.
This commit is contained in:
parent
62707986b7
commit
81f8099cc6
5 changed files with 11 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue