aboutsummaryrefslogtreecommitdiffstats
path: root/frontend
diff options
context:
space:
mode:
authorZipCPU <dgisselq@ieee.org>2018-06-07 15:46:21 -0400
committerZipCPU <dgisselq@ieee.org>2018-06-07 15:46:21 -0400
commit87775d3c6f56bcaaf47e169822ae97b8370ac44f (patch)
tree6771accc538332b08aeceb25856cad45db183678 /frontend
parent4499864024a5b658bf5772ed87e218bcdaedc262 (diff)
parente7ff22ce901102589173f7a7dc3e4ddbb030655f (diff)
downloadnextpnr-87775d3c6f56bcaaf47e169822ae97b8370ac44f.tar.gz
nextpnr-87775d3c6f56bcaaf47e169822ae97b8370ac44f.tar.bz2
nextpnr-87775d3c6f56bcaaf47e169822ae97b8370ac44f.zip
Tried to add fixes *and* update clang-format jsonparse.cc
Diffstat (limited to 'frontend')
-rw-r--r--frontend/json/jsonparse.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/frontend/json/jsonparse.cc b/frontend/json/jsonparse.cc
index 56e6b1b6..91da07dd 100644
--- a/frontend/json/jsonparse.cc
+++ b/frontend/json/jsonparse.cc
@@ -331,8 +331,7 @@ void json_import_cell_attributes(Design *design, string &modname,
pId = param_node->data_dict_keys[param_id];
if (param->type == 'N') {
- cell->params[pId] = std::to_string(param_node->data_number);
- ;
+ cell->params[pId] = std::to_string(param->data_number);
} else if (param->type == 'S')
cell->params[pId] = param->data_string;
else