Support bitfields for FT_CHAR.

Change-Id: I3ad1ad27107c9e2c0d9da6d05f0a06609369271f
Reviewed-on: https://code.wireshark.org/review/17789
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2016-09-18 21:15:59 -07:00
parent 9143862cd0
commit 2de2ddd229
1 changed files with 2 additions and 1 deletions

View File

@ -81,7 +81,8 @@ def check_fields(fields):
if field.bitmask != 0:
if field.ftype.find("FT_UINT") != 0 and \
field.ftype.find("FT_INT") != 0 and \
field.ftype != "FT_BOOLEAN":
field.ftype != "FT_BOOLEAN" and \
field.ftype != "FT_CHAR":
print("%s has a bitmask 0x%x but is type %s" % \
(field.abbrev, field.bitmask, field.ftype))
errors += 1