mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Don't count single quote ' as garbage (#1801)
Also copy the "blank space" (space or tab) vs "whitespace" (space, tab, or newline) convention from `<ctype.h>`
This commit is contained in:
@@ -55,7 +55,7 @@ std::pair<WarningState, std::optional<uint32_t>> getInitialWarningState(std::str
|
||||
}
|
||||
|
||||
// Is the rest of the string a decimal number?
|
||||
// We want to avoid `strtoul`'s whitespace and sign, so we parse manually
|
||||
// We want to avoid `strtoul`'s whitespace and sign handling, so we parse manually
|
||||
char const *ptr = flag.c_str() + equals + 1;
|
||||
uint32_t param = 0;
|
||||
bool overflowed = false;
|
||||
|
||||
Reference in New Issue
Block a user