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:
ISSOtm
2021-03-10 10:56:57 +01:00
parent 5a6a44cbc1
commit 60019cf476
13 changed files with 59 additions and 44 deletions

View File

@@ -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';