aboutsummaryrefslogtreecommitdiffstats
path: root/json
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-06-02 11:36:56 +0100
committergatecat <gatecat@ds0.me>2021-06-02 15:05:20 +0100
commiteca1a4cee4f310c7e2c1216bd678143c1967edd4 (patch)
tree2106f7895e22f60f6d200cca6d9244bcc81a1ab9 /json
parentb8a68f5f35af49c36d6f4e86a3a1c5afa1b3215f (diff)
downloadnextpnr-eca1a4cee4f310c7e2c1216bd678143c1967edd4.tar.gz
nextpnr-eca1a4cee4f310c7e2c1216bd678143c1967edd4.tar.bz2
nextpnr-eca1a4cee4f310c7e2c1216bd678143c1967edd4.zip
Use hashlib in most remaining code
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'json')
-rw-r--r--json/jsonwrite.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/json/jsonwrite.cc b/json/jsonwrite.cc
index dbf43351..88d66519 100644
--- a/json/jsonwrite.cc
+++ b/json/jsonwrite.cc
@@ -67,7 +67,7 @@ struct PortGroup
std::vector<PortGroup> group_ports(Context *ctx, const dict<IdString, PortInfo> &ports, bool is_cell = false)
{
std::vector<PortGroup> groups;
- std::unordered_map<std::string, size_t> base_to_group;
+ dict<std::string, size_t> base_to_group;
for (auto &pair : ports) {
std::string name = pair.second.name.str(ctx);
if ((name.back() != ']') || (name.find('[') == std::string::npos)) {