diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-09-18 21:15:59 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-09-19 04:16:39 +0000 |
commit | 2de2ddd229ae9b2a57c3916016c33941d5b2b1d5 (patch) | |
tree | 04296993bb1c759b5cadcc90a4d53e2e0c48748c /tools/ftsanity.py | |
parent | 9143862cd0ae2ca9365a189e47fba7364699f35f (diff) |
Support bitfields for FT_CHAR.
Change-Id: I3ad1ad27107c9e2c0d9da6d05f0a06609369271f
Reviewed-on: https://code.wireshark.org/review/17789
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'tools/ftsanity.py')
-rwxr-xr-x | tools/ftsanity.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/ftsanity.py b/tools/ftsanity.py index c8016d1b1e..86ade1c71d 100755 --- a/tools/ftsanity.py +++ b/tools/ftsanity.py @@ -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 |