aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>2000-04-11 16:07:40 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>2000-04-11 16:07:40 +0000
commitdf5f3b52ceb29d5be3feb40180c7f22ea2f60728 (patch)
treee29dd8bd7f4564dbe972c635beb07e8d18d9c31a
parent3ae12aa496335f6bb59374c800788cf1378cfd72 (diff)
Have proto_tree_set_boolean() call proto_tree_set_uint() so that
bit shifting is handled correctly. svn path=/trunk/; revision=1829
-rw-r--r--proto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto.c b/proto.c
index e8d18c5bd0..d71193a125 100644
--- a/proto.c
+++ b/proto.c
@@ -1,7 +1,7 @@
/* proto.c
* Routines for protocol tree
*
- * $Id: proto.c,v 1.60 2000/04/04 17:07:07 gram Exp $
+ * $Id: proto.c,v 1.61 2000/04/11 16:07:40 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -738,7 +738,7 @@ proto_tree_add_boolean_format(proto_tree *tree, int hfindex, gint start, gint le
static void
proto_tree_set_boolean(field_info *fi, guint32 value)
{
- fi->value.numeric = value;
+ proto_tree_set_uint(fi, value);
}
/* Add a FT_DOUBLE to a proto_tree */