mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-30 03:10:23 +02:00
Update to v098r10 release.
byuu says: Changelog: - synchronized tomoko, loki, icarus with extensive changes to nall (118KiB diff)
This commit is contained in:
@@ -28,7 +28,7 @@ inline auto evaluateExpression(Node* node) -> string {
|
||||
for(auto& link : node->link) {
|
||||
result.append(evaluateExpression(link), ", ");
|
||||
}
|
||||
return result.rtrim(", ", 1L).append(")");
|
||||
return result.trimRight(", ", 1L).append(")");
|
||||
}
|
||||
}
|
||||
#undef p
|
||||
|
@@ -16,7 +16,7 @@ inline auto literalNumber(const char*& s) -> string {
|
||||
|
||||
//binary
|
||||
if(p[0] == '%' || (p[0] == '0' && p[1] == 'b')) {
|
||||
unsigned prefix = 1 + (p[0] == '0');
|
||||
uint prefix = 1 + (p[0] == '0');
|
||||
p += prefix;
|
||||
while(p[0] == '\'' || p[0] == '0' || p[0] == '1') p++;
|
||||
if(p - s <= prefix) throw "invalid binary literal";
|
||||
@@ -27,7 +27,7 @@ inline auto literalNumber(const char*& s) -> string {
|
||||
|
||||
//octal
|
||||
if(p[0] == '0' && p[1] == 'o') {
|
||||
unsigned prefix = 1 + (p[0] == '0');
|
||||
uint prefix = 1 + (p[0] == '0');
|
||||
p += prefix;
|
||||
while(p[0] == '\'' || (p[0] >= '0' && p[0] <= '7')) p++;
|
||||
if(p - s <= prefix) throw "invalid octal literal";
|
||||
@@ -38,7 +38,7 @@ inline auto literalNumber(const char*& s) -> string {
|
||||
|
||||
//hex
|
||||
if(p[0] == '$' || (p[0] == '0' && p[1] == 'x')) {
|
||||
unsigned prefix = 1 + (p[0] == '0');
|
||||
uint prefix = 1 + (p[0] == '0');
|
||||
p += prefix;
|
||||
while(p[0] == '\'' || (p[0] >= '0' && p[0] <= '9') || (p[0] >= 'A' && p[0] <= 'F') || (p[0] >= 'a' && p[0] <= 'f')) p++;
|
||||
if(p - s <= prefix) throw "invalid hex literal";
|
||||
|
Reference in New Issue
Block a user