Fix level compiling with decimals
This commit is contained in:
parent
709a145575
commit
7ed4d90e2d
|
@ -25,10 +25,14 @@ s64 DynOS_Misc_ParseInteger(const String& _Arg, bool* found) {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// is a decimal number
|
// is a decimal number
|
||||||
|
if (*argStr == '-' || *argStr == '+') {
|
||||||
|
// good
|
||||||
|
argStr++;
|
||||||
|
}
|
||||||
while(*argStr != '\0') {
|
while(*argStr != '\0') {
|
||||||
if (*argStr >= '0' && *argStr <= '9') {
|
if (*argStr >= '0' && *argStr <= '9') {
|
||||||
// good
|
// good
|
||||||
} else if (*argStr == '-' || *argStr == '+') {
|
} else if (*argStr == '.') {
|
||||||
// good
|
// good
|
||||||
} else {
|
} else {
|
||||||
// bad character
|
// bad character
|
||||||
|
|
Loading…
Reference in New Issue