aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-09-22 11:05:24 +0200
committerGitHub <noreply@github.com>2020-09-22 11:05:24 +0200
commit451567d259613f143566aa6334fe69e4b12cb028 (patch)
tree3e5cc07b0bce9cf2e032fc041c6fd2a3b1321bb1
parent38152410fbff407a9f5d50f0496ea149311238be (diff)
parentc1e79f870cf548e81d7cab0d296c6e923da9fa8c (diff)
Merge pull request #4049 from tweag/remove-signed-unsigned-warning
Silence a compiler warning in serialise.hh
-rw-r--r--src/libutil/serialise.hh2
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;