diff options
author | 2019-09-23 20:34:31 -0400 | |
---|---|---|
committer | 2019-09-23 20:34:31 -0400 | |
commit | 531633d519b1fdf40d9fda57d04f84b6607de4a7 (patch) | |
tree | 6a67313b96567c4e1dc5b51fafa5dd34b8d3b2ea | |
parent | b77f2851c9f1e75737f77f6660a0a6a783a154b9 (diff) |
Fixed a compilation bug under clang-cl (#5677)
* Fixed a compiltion bug under clang-cl
Oddly, this problem does not seem to manifest under clang on
gcc.godbolt.org. I suspect that this might be related to the fact that
sizeof(std::size_t) != sizeof(long) on Windows.
* Couriersud feedback
-rw-r--r-- | src/lib/netlist/plib/putil.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/netlist/plib/putil.h b/src/lib/netlist/plib/putil.h index 940a6845b16..e6e6153d840 100644 --- a/src/lib/netlist/plib/putil.h +++ b/src/lib/netlist/plib/putil.h @@ -142,7 +142,7 @@ namespace plib if (ss >> x) { auto pos(ss.tellg()); - if (pos == -1) + if (pos == static_cast<decltype(pos)>(-1)) pos = len; *idx = static_cast<std::size_t>(pos); } |