aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/json
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-06-18 13:13:51 +0200
committerClifford Wolf <clifford@clifford.at>2018-06-18 13:13:51 +0200
commit2f5e9542c2d9132b2c01d4dbc8c4d2dff97c60cf (patch)
treeda4733a6f5865d6067b663d001e1cf7d19170b88 /frontend/json
parente0aa5c969e9dc84d5d39f51c5ffe0fa9b7316838 (diff)
parentbb4c70381338e1a84920cc2d62648910528fee1c (diff)
downloadnextpnr-2f5e9542c2d9132b2c01d4dbc8c4d2dff97c60cf.tar.gz
nextpnr-2f5e9542c2d9132b2c01d4dbc8c4d2dff97c60cf.tar.bz2
nextpnr-2f5e9542c2d9132b2c01d4dbc8c4d2dff97c60cf.zip
Merge branch 'master' of gitlab.com:SymbioticEDA/nextpnr
Diffstat (limited to 'frontend/json')
-rw-r--r--frontend/json/jsonparse.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/frontend/json/jsonparse.cc b/frontend/json/jsonparse.cc
index 0b06f980..3c060fd7 100644
--- a/frontend/json/jsonparse.cc
+++ b/frontend/json/jsonparse.cc
@@ -741,9 +741,10 @@ void json_import(Design *design, string modname, JsonNode *node)
netnames.resize(netid + 1);
netnames.at(netid) =
basename +
- (num_bits == 1 ? "" : std::string("[") +
- std::to_string(i) +
- std::string("]"));
+ (num_bits == 1
+ ? ""
+ : std::string("[") + std::to_string(i) +
+ std::string("]"));
}
}
}