aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-noe.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2012-03-01 16:32:24 +0000
committerAnders Broman <anders.broman@ericsson.com>2012-03-01 16:32:24 +0000
commite473e6eb9f868ba1c1b3ad63680f7af2abf02041 (patch)
treed8e102b63f91600d8901c43beabe04eeeff25793 /epan/dissectors/packet-noe.c
parentb1fcbfa4292e50205482e420996943833961c463 (diff)
See if this solves:
> packet-noe.c: In function 'decode_utf8': > packet-noe.c:805: warning: integer constant is too large for 'long' > type > packet-noe.c:808: warning: integer constant is too large for 'long' > type > packet-noe.c:814: warning: integer constant is too large for 'long' > type > packet-noe.c:817: warning: integer constant is too large for 'long' > type > packet-noe.c:818: warning: integer constant is too large for 'long' > type svn path=/trunk/; revision=41271
Diffstat (limited to 'epan/dissectors/packet-noe.c')
-rw-r--r--epan/dissectors/packet-noe.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-noe.c b/epan/dissectors/packet-noe.c
index 33573f0ece..4732ddfd0a 100644
--- a/epan/dissectors/packet-noe.c
+++ b/epan/dissectors/packet-noe.c
@@ -802,20 +802,20 @@ static guint64 decode_utf8(guint64 utf8)
((utf8 & 0x3F00) >> 2) +
(utf8 & 0x3F);
}
- else if(utf8 <= 0xFFFFFFFFFF)
+ else if(utf8 <= G_GINT64_CONSTANT(0xFFFFFFFFFF))
{
unicode =
- ((utf8 & 0x0300000000) >> 8) +
+ ((utf8 & G_GINT64_CONSTANT(0x0300000000)) >> 8) +
((utf8 & 0x3F000000) >> 6) +
((utf8 & 0x3F0000) >> 4) +
((utf8 & 0x3F00) >> 2) +
(utf8 & 0x3F);
}
- else if(utf8 <= 0xFFFFFFFFFFFF)
+ else if(utf8 <= G_GINT64_CONSTANT(0xFFFFFFFFFFFF))
{
unicode =
- ((utf8 & 0x010000000000) >> 10) +
- ((utf8 & 0x3F00000000) >> 8) +
+ ((utf8 & G_GINT64_CONSTANT(0x010000000000)) >> 10) +
+ ((utf8 & G_GINT64_CONSTANT(0x3F00000000)) >> 8) +
((utf8 & 0x3F000000) >> 6) +
((utf8 & 0x3F0000) >> 4) +
((utf8 & 0x3F00) >> 2) +