diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-09-22 11:05:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-22 11:05:24 +0200 |
commit | 451567d259613f143566aa6334fe69e4b12cb028 (patch) | |
tree | 3e5cc07b0bce9cf2e032fc041c6fd2a3b1321bb1 | |
parent | 38152410fbff407a9f5d50f0496ea149311238be (diff) | |
parent | c1e79f870cf548e81d7cab0d296c6e923da9fa8c (diff) |
Merge pull request #4049 from tweag/remove-signed-unsigned-warning
Silence a compiler warning in serialise.hh
-rw-r--r-- | src/libutil/serialise.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/serialise.hh b/src/libutil/serialise.hh index 6f4f4c855..7682a0f19 100644 --- a/src/libutil/serialise.hh +++ b/src/libutil/serialise.hh @@ -340,7 +340,7 @@ T readNum(Source & source) ((uint64_t) buf[6] << 48) | ((uint64_t) buf[7] << 56); - if (n > std::numeric_limits<T>::max()) + if (n > (uint64_t)std::numeric_limits<T>::max()) throw SerialisationError("serialised integer %d is too large for type '%s'", n, typeid(T).name()); return (T) n; |