aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tvbuff.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/tvbuff.c')
-rw-r--r--epan/tvbuff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/tvbuff.c b/epan/tvbuff.c
index be23e3408f..ab1c075fb9 100644
--- a/epan/tvbuff.c
+++ b/epan/tvbuff.c
@@ -4571,7 +4571,7 @@ tvb_get_varint(tvbuff_t *tvb, guint offset, guint maxlen, guint64 *value, const
for (i = 0; ((i < FT_VARINT_MAX_LEN) && (i < maxlen)); ++i) {
b = tvb_get_guint8(tvb, offset++);
- if ((i == 9) && (*value >= (uint64_t)1<<(64-7))) {
+ if ((i == 9) && (*value >= G_GUINT64_CONSTANT(1)<<(64-7))) {
// guaranteed overflow, not valid SDNV
return 0;
}