diff options
author | Clifford Wolf <clifford@clifford.at> | 2019-08-02 16:37:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-02 16:37:57 +0200 |
commit | f4ae6afc2282bcefac51b65e3905293cb19adc72 (patch) | |
tree | 2fef377b1811ef8030c4dbfdf5cabcada755cdd4 /frontends | |
parent | e8a2d10982cd8f6ba3b0e66fbd922b051073f0cf (diff) | |
parent | 7a65ed19a5921ff219fd208d2712e09b5e5894dd (diff) | |
download | yosys-f4ae6afc2282bcefac51b65e3905293cb19adc72.tar.gz yosys-f4ae6afc2282bcefac51b65e3905293cb19adc72.tar.bz2 yosys-f4ae6afc2282bcefac51b65e3905293cb19adc72.zip |
Merge pull request #1239 from mmicko/mingw_fix
Fix formatting for msys2 mingw build
Diffstat (limited to 'frontends')
-rw-r--r-- | frontends/aiger/aigerparse.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/frontends/aiger/aigerparse.cc b/frontends/aiger/aigerparse.cc index 03c541b7c..bb97c5703 100644 --- a/frontends/aiger/aigerparse.cc +++ b/frontends/aiger/aigerparse.cc @@ -301,7 +301,11 @@ static uint32_t parse_xaiger_literal(std::istream &f) uint32_t l; f.read(reinterpret_cast<char*>(&l), sizeof(l)); if (f.gcount() != sizeof(l)) +#if defined(_WIN32) && defined(__MINGW32__) + log_error("Offset %I64d: unable to read literal!\n", static_cast<int64_t>(f.tellg())); +#else log_error("Offset %" PRId64 ": unable to read literal!\n", static_cast<int64_t>(f.tellg())); +#endif return from_big_endian(l); } |