mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 22:13:51 +00:00
Fix ASAN error
This commit is contained in:
parent
55e0a97446
commit
f07952ecf0
@ -853,9 +853,7 @@ static bool png_read_trns(uint8_t *buf, uint32_t *palette, unsigned entries)
|
||||
unsigned i;
|
||||
|
||||
for (i = 0; i < entries; i++, buf++, palette++)
|
||||
{
|
||||
*palette = (*palette & 0x00ffffff) | *buf << 24;
|
||||
}
|
||||
*palette = (*palette & 0x00ffffff) | (unsigned)*buf << 24;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user