JSON-PARSER: Fixed bug in properly reading neg #s

This commit is contained in:
ZipCPU 2018-08-15 08:09:55 -04:00
parent e93c990f42
commit b945de8b1f

View File

@ -116,11 +116,11 @@ struct JsonNode
}
data_number = data_number * 10 + (ch - '0');
if (data_string[0] == '-')
data_number = -data_number;
data_string += ch;
}
if (data_string[0] == '-')
data_number = -data_number;
data_string = "";
break;