mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 17:19:44 -06:00
fix various instances of -1 being assigned to unsigned types
This commit is contained in:
@ -16,7 +16,7 @@ u16* IndexGenerator::index_buffer_current;
|
||||
u16* IndexGenerator::BASEIptr;
|
||||
u32 IndexGenerator::base_index;
|
||||
|
||||
static const u16 s_primitive_restart = -1;
|
||||
static const u16 s_primitive_restart = UINT16_MAX;
|
||||
|
||||
static u16* (*primitive_table[8])(u16*, u32, u32);
|
||||
|
||||
|
@ -994,7 +994,7 @@ void TextureCacheBase::CopyRenderTargetToTexture(u32 dstAddr, unsigned int dstFo
|
||||
float* const ColorMask = colmat + 20;
|
||||
ColorMask[0] = ColorMask[1] = ColorMask[2] = ColorMask[3] = 255.0f;
|
||||
ColorMask[4] = ColorMask[5] = ColorMask[6] = ColorMask[7] = 1.0f / 255.0f;
|
||||
unsigned int cbufid = -1;
|
||||
unsigned int cbufid = UINT_MAX;
|
||||
u32 srcFormat = bpmem.zcontrol.pixel_format;
|
||||
bool efbHasAlpha = srcFormat == PEControl::RGBA6_Z24;
|
||||
|
||||
|
@ -36,7 +36,7 @@ public:
|
||||
private:
|
||||
size_t CalculateHash() const
|
||||
{
|
||||
size_t h = -1;
|
||||
size_t h = SIZE_MAX;
|
||||
|
||||
for (auto word : vid)
|
||||
{
|
||||
|
Reference in New Issue
Block a user