mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Remove warnings of -Wsign-compare
Cast the variable to the coresponding type.
This commit is contained in:
@ -136,9 +136,9 @@ static void DumpEfb(const std::string& filename)
|
||||
u8* data = new u8[EFB_WIDTH * EFB_HEIGHT * 4];
|
||||
u8* writePtr = data;
|
||||
|
||||
for (int y = 0; y < EFB_HEIGHT; y++)
|
||||
for (u32 y = 0; y < EFB_HEIGHT; y++)
|
||||
{
|
||||
for (int x = 0; x < EFB_WIDTH; x++)
|
||||
for (u32 x = 0; x < EFB_WIDTH; x++)
|
||||
{
|
||||
// ABGR to RGBA
|
||||
const u32 sample = Common::swap32(EfbInterface::GetColor(x, y));
|
||||
|
@ -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);
|
||||
|
@ -567,8 +567,8 @@ void Tev::Indirect(unsigned int stageNum, s32 s, s32 t)
|
||||
|
||||
void Tev::Draw()
|
||||
{
|
||||
ASSERT(Position[0] >= 0 && Position[0] < EFB_WIDTH);
|
||||
ASSERT(Position[1] >= 0 && Position[1] < EFB_HEIGHT);
|
||||
ASSERT(Position[0] >= 0 && Position[0] < s32(EFB_WIDTH));
|
||||
ASSERT(Position[1] >= 0 && Position[1] < s32(EFB_HEIGHT));
|
||||
|
||||
INCSTAT(g_stats.this_frame.tev_pixels_in);
|
||||
|
||||
|
Reference in New Issue
Block a user