mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Fix a bunch of Clang warnings
As reported by #789 Should avoid relying on 32-bit int (for implicit conversions) and account for more extreme uses of RGBDS.
This commit is contained in:
@@ -57,7 +57,7 @@ char const *print(int c)
|
||||
|
||||
default: /* Print as hex */
|
||||
buf[1] = 'x';
|
||||
sprintf(&buf[2], "%02hhx", c);
|
||||
sprintf(&buf[2], "%02hhx", (uint8_t)c);
|
||||
return buf;
|
||||
}
|
||||
buf[2] = '\0';
|
||||
|
||||
Reference in New Issue
Block a user