Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
9251131
)
vppapigen: crc is a negative value for some messages when using python 2.7
62/25662/1
author
Mark Nelson
<manelso2@cisco.com>
Wed, 4 Mar 2020 20:32:09 +0000
(15:32 -0500)
committer
Mark Nelson
<manelso2@cisco.com>
Wed, 4 Mar 2020 20:32:09 +0000
(15:32 -0500)
Type: fix
Signed-off-by: Mark Nelson <manelso2@cisco.com>
Change-Id: I4f121e49d3c05c21eed3fed2469bd88fc84e2271
src/tools/vppapigen/vppapigen.py
patch
|
blob
|
history
diff --git
a/src/tools/vppapigen/vppapigen.py
b/src/tools/vppapigen/vppapigen.py
index
7a7b687
..
f3013aa
100755
(executable)
--- 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
)
#