diff options
| author | Miodrag Milanovic <mmicko@gmail.com> | 2019-06-24 10:09:25 +0200 | 
|---|---|---|
| committer | Miodrag Milanovic <mmicko@gmail.com> | 2019-06-24 10:09:25 +0200 | 
| commit | 560e3899d8ffe8952cd61067c3b42a4a0b885638 (patch) | |
| tree | fe7daeae7180121ad05d23fa3a9547e9f5449cff /json | |
| parent | bc1450a5cdc55abbc20775c9372131f97f66afd7 (diff) | |
| download | nextpnr-560e3899d8ffe8952cd61067c3b42a4a0b885638.tar.gz nextpnr-560e3899d8ffe8952cd61067c3b42a4a0b885638.tar.bz2 nextpnr-560e3899d8ffe8952cd61067c3b42a4a0b885638.zip  | |
Fix formatting
Diffstat (limited to 'json')
| -rw-r--r-- | json/jsonparse.cc | 18 | 
1 files changed, 9 insertions, 9 deletions
diff --git a/json/jsonparse.cc b/json/jsonparse.cc index 1a98f53f..0f229aca 100644 --- a/json/jsonparse.cc +++ b/json/jsonparse.cc @@ -750,15 +750,15 @@ void json_import(Context *ctx, string modname, JsonNode *node)              bool upto = false;              int start_offset = 0;              if (here->data_dict.count("upto") != 0) { -				JsonNode *val = here->data_dict.at("upto"); -				if (val->type == 'N') -					upto = val->data_number != 0; -			} -			if (here->data_dict.count("offset") != 0) { -				JsonNode *val = here->data_dict.at("offset"); -				if (val->type == 'N') -					start_offset = val->data_number; -			} +                JsonNode *val = here->data_dict.at("upto"); +                if (val->type == 'N') +                    upto = val->data_number != 0; +            } +            if (here->data_dict.count("offset") != 0) { +                JsonNode *val = here->data_dict.at("offset"); +                if (val->type == 'N') +                    start_offset = val->data_number; +            }              if (here->data_dict.count("bits")) {                  JsonNode *bits = here->data_dict.at("bits");                  assert(bits->type == 'A');  | 
