Merge pull request #12872 from sonninnos/c89-buildfix

C89 buildfix
This commit is contained in:
Autechre 2021-08-25 00:37:31 +02:00 committed by GitHub
commit aac207b455
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -300,7 +300,7 @@ int rmsgpack_write_int(RFILE *fd, int64_t value)
} }
else if (value >= -32 && value < 0) 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) if (filestream_write(fd, &tmpval, sizeof(uint8_t)) == -1)
goto error; goto error;
} }