aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--AUTHORS1
-rw-r--r--packet-x11.c8
2 files changed, 5 insertions, 4 deletions
diff --git a/AUTHORS b/AUTHORS
index c71f5c5c42..eab71b931b 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -1197,6 +1197,7 @@ Ruud Linders <ruud[AT]lucent.com> {
Andrew Esh <Andrew.Esh[AT]tricord.com> {
Support for interest level 1003 and 1007 in
TRANS2_QUERY_FS_INFORMATION
+ Fix a compiler warning
}
Greg Morris <GMORRIS[AT]novell.com> {
diff --git a/packet-x11.c b/packet-x11.c
index a56cb6f3fd..7890fadb2b 100644
--- a/packet-x11.c
+++ b/packet-x11.c
@@ -2,7 +2,7 @@
* Routines for X11 dissection
* Copyright 2000, Christophe Tronche <ch.tronche@computer.org>
*
- * $Id: packet-x11.c,v 1.43 2002/04/23 06:06:03 guy Exp $
+ * $Id: packet-x11.c,v 1.44 2002/05/16 19:29:03 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -667,9 +667,9 @@ static const value_string zero_is_none_vals[] = {
int bitmask_offset; \
int bitmask_size; \
proto_tree *bitmask_tree; \
- bitmask_value = ((size == 1) ? VALUE8(tvb, *offsetp) : \
- ((size == 2) ? VALUE16(tvb, *offsetp) : \
- VALUE32(tvb, *offsetp))); \
+ bitmask_value = ((size == 1) ? (guint32)VALUE8(tvb, *offsetp) : \
+ ((size == 2) ? (guint32)VALUE16(tvb, *offsetp) : \
+ (guint32)VALUE32(tvb, *offsetp))); \
bitmask_offset = *offsetp; \
bitmask_size = size; \
ti = proto_tree_add_uint(t, hf_x11_##name##_mask, tvb, *offsetp, size, bitmask_value); \