SCI32: Treat %d as unsigned in kString

At least Shivers has VMDs with resource IDs above 2^15; treating %d
as signed means that the wrong filename gets created.
This commit is contained in:
Colin Snover 2016-11-04 14:53:39 -05:00
parent e58dad8bb6
commit 44dfa4c49f

View File

@ -733,11 +733,12 @@ namespace {
}
bool isSignedType(const char type) {
return type == 'd' || type == 'i';
// For whatever reason, %d ends up being treated as unsigned in SSCI
return type == 'i';
}
bool isUnsignedType(const char type) {
return strchr("uxXoc", type);
return strchr("duxXoc", type);
}
bool isStringType(const char type) {