diff options
author | ZipCPU <dgisselq@ieee.org> | 2018-08-15 08:09:55 -0400 |
---|---|---|
committer | ZipCPU <dgisselq@ieee.org> | 2018-08-15 08:09:55 -0400 |
commit | b945de8b1fa492b0e99139a1e25124c1c97b9e02 (patch) | |
tree | 20f49f9d77531a09e87651a16e6917c43d4b1d76 | |
parent | e93c990f425b13c5788b70099976b8a9bcd5d952 (diff) | |
download | nextpnr-b945de8b1fa492b0e99139a1e25124c1c97b9e02.tar.gz nextpnr-b945de8b1fa492b0e99139a1e25124c1c97b9e02.tar.bz2 nextpnr-b945de8b1fa492b0e99139a1e25124c1c97b9e02.zip |
JSON-PARSER: Fixed bug in properly reading neg #s
-rw-r--r-- | json/jsonparse.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/json/jsonparse.cc b/json/jsonparse.cc index 86056b70..ab01e01b 100644 --- a/json/jsonparse.cc +++ b/json/jsonparse.cc @@ -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; |