diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-06-21 16:16:58 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-06-21 16:16:58 +0200 |
commit | 4fefdbd57c52d6373456bd379e3e54df770e1945 (patch) | |
tree | 668c93671338f4482b163c2e8f40298cbedcb2c0 /common/pybindings.cc | |
parent | 417e67938c12be20a1c314d42386ede0ad8993a7 (diff) | |
download | nextpnr-4fefdbd57c52d6373456bd379e3e54df770e1945.tar.gz nextpnr-4fefdbd57c52d6373456bd379e3e54df770e1945.tar.bz2 nextpnr-4fefdbd57c52d6373456bd379e3e54df770e1945.zip |
Cleanup parse_json_file API, some other cleanups
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'common/pybindings.cc')
-rw-r--r-- | common/pybindings.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/pybindings.cc b/common/pybindings.cc index 26e8bf69..02dc2395 100644 --- a/common/pybindings.cc +++ b/common/pybindings.cc @@ -52,8 +52,7 @@ void parse_json_shim(std::string filename, Context &d) std::ifstream inf(filename); if (!inf) throw std::runtime_error("failed to open file " + filename); - std::istream *ifp = &inf; - parse_json_file(ifp, filename, &d); + parse_json_file(inf, filename, &d); } // Create a new Chip and load design from json file |