Merge pull request #1123 from mmicko/fix_typo

Fix json frontend loading upto
This commit is contained in:
Clifford Wolf 2019-06-21 19:25:35 +02:00 committed by GitHub
commit e664814971
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ void json_import(Design *design, string &modname, JsonNode *node)
wire = module->addWire(net_name, GetSize(bits_node->data_array));
if (net_node->data_dict.count("upto") != 0) {
JsonNode *val = net_node->data_dict.at("offset");
JsonNode *val = net_node->data_dict.at("upto");
if (val->type == 'N')
wire->upto = val->data_number != 0;
}