mirror of
https://github.com/libretro/prosystem-libretro.git
synced 2024-11-26 17:50:24 +00:00
C89 compliance
This commit is contained in:
parent
22c7648352
commit
4202ac5bdb
@ -405,11 +405,10 @@ uint32_t read_uint32_from_buffer(const char* buffer, uint32_t* offset)
|
||||
|
||||
void save_uint32_to_buffer(char* buffer, uint32_t* size, uint32_t data)
|
||||
{
|
||||
int i;
|
||||
uint8_t shiftby = 32;
|
||||
uint32_t index = *size;
|
||||
*size += 8;
|
||||
for(int i = 0; i < 8; i++)
|
||||
{
|
||||
for (i = 0; i < 8; i++)
|
||||
buffer[index++] = (data >> (shiftby -= 4)) & 0xF;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user