diff options
author | Brian Sipos <brian.sipos@gmail.com> | 2022-10-21 19:24:28 -0400 |
---|---|---|
committer | A Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2022-10-24 15:29:15 +0000 |
commit | c4b30942d031d9b8ff7286d5b892ecd6999c285c (patch) | |
tree | 11770268ece42c5fb9983a653eea747a17a25144 /epan/tvbuff.c | |
parent | 0647fc5f238f642212a0a058b45a315242cb5a45 (diff) |
epan: Fix build errors about try/catch block on some compilers
The original error was identified in a comment on !8583
Diffstat (limited to 'epan/tvbuff.c')
-rw-r--r-- | epan/tvbuff.c | 2 |
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; } |