C89 buildfix

This commit is contained in:
sonninnos 2021-08-24 22:32:47 +03:00
parent 2329a36f54
commit ca311246b1
2 changed files with 2 additions and 2 deletions

View File

@ -220,7 +220,7 @@ enum winraw_scancodes {
SC_LAUNCH_MEDIA = 0xE06D,
SC_PAUSE = 0xFFFE/*0xE11D45*/,
SC_LAST = 0xFFFF,
SC_LAST = 0xFFFF
};
#endif

View File

@ -300,7 +300,7 @@ int rmsgpack_write_int(RFILE *fd, int64_t value)
}
else if (value >= -32 && value < 0)
{
tmpval = (uint8_t)(value + 256); // -32..-1 => 0xE0 .. 0xFF
tmpval = (uint8_t)(value + 256); /* -32..-1 => 0xE0 .. 0xFF */
if (filestream_write(fd, &tmpval, sizeof(uint8_t)) == -1)
goto error;
}