Make sure we handle Booleans even with the upper 32 bits set.

Just pass 1 or 0 to proto_tree_add_boolean() depending on whether the
64-bit value is non-zero or zero.

Change-Id: I5b55c9aff4e559fb8e62bd96ae2b0b34e45189fa
Reviewed-on: https://code.wireshark.org/review/8129
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2015-04-19 18:51:39 -07:00
parent 1edbd5a875
commit d47373f278
1 changed files with 1 additions and 1 deletions

View File

@ -8124,7 +8124,7 @@ proto_item_add_bitmask_tree(proto_item *item, tvbuff_t *tvb, const int offset,
break;
case FT_BOOLEAN:
proto_tree_add_boolean(tree, **fields, tvb, offset, len, (guint32)value);
proto_tree_add_boolean(tree, **fields, tvb, offset, len, (value != 0));
break;
default: