diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-05-08 18:26:49 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-05-09 01:27:17 +0000 |
commit | 53025444b7e2f51cf478d01307a9ef8ef1e03b6a (patch) | |
tree | 5f48dc681d2ae1bd1ed97c43684e8c9d53744eef /wsutil/type_util.c | |
parent | a50eefbd0f4e5b2499285880fc1618f19696bd3b (diff) | |
download | wireshark-53025444b7e2f51cf478d01307a9ef8ef1e03b6a.tar.gz |
Keep everything unsigned there.
This squelches a warning from Sun/Oracle C, and it's the right thing to
do in any case, as the LHS of the & operator is unsigned.
Change-Id: I824a82d945f8f2535282bbf466dcd65806c6f695
Reviewed-on: https://code.wireshark.org/review/8362
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wsutil/type_util.c')
-rw-r--r-- | wsutil/type_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wsutil/type_util.c b/wsutil/type_util.c index d41ab7d10a..8256dd7e63 100644 --- a/wsutil/type_util.c +++ b/wsutil/type_util.c @@ -48,7 +48,7 @@ gdouble type_util_guint64_to_gdouble(guint64 value) { - if (value & G_GINT64_CONSTANT (0x8000000000000000)) + if (value & G_GUINT64_CONSTANT (0x8000000000000000)) return (gdouble) ((gint64) value) + (gdouble) 18446744073709551616.; else return (gdouble) ((gint64) value); |