diff options
Diffstat (limited to 'src/tools/vppapigen')
-rwxr-xr-x | src/tools/vppapigen/vppapigen.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/vppapigen/vppapigen.py b/src/tools/vppapigen/vppapigen.py index 7a7b68737ba..f3013aa6021 100755 --- a/src/tools/vppapigen/vppapigen.py +++ b/src/tools/vppapigen/vppapigen.py @@ -761,7 +761,7 @@ class VPPAPI(object): for o in objs: tname = o.__class__.__name__ try: - crc = binascii.crc32(o.crc, crc) + crc = binascii.crc32(o.crc, crc) & 0xffffffff except AttributeError: pass if isinstance(o, Define): @@ -908,7 +908,7 @@ def foldup_blocks(block, crc): def foldup_crcs(s): for f in s: f.crc = foldup_blocks(f.block, - binascii.crc32(f.crc)) + binascii.crc32(f.crc) & 0xffffffff) # |