Skip to content

Commit d478d6b

Browse files
author
Cruz Monrreal
authored
Merge pull request #8788 from kaidokert/master
Fix unsigned packing bug in merge_regions #8544
2 parents f9d07f3 + 6815409 commit d478d6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/build_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ def _fill_header(region_list, current_region):
388388
else:
389389
ih = intelhex_offset(region_dict[data].filename, offset=region_dict[data].start)
390390
if subtype.startswith("CRCITT32"):
391-
fmt = {"CRCITT32be": ">l", "CRCITT32le": "<l"}[subtype]
391+
fmt = {"CRCITT32be": ">L", "CRCITT32le": "<L"}[subtype]
392392
header.puts(start, struct.pack(fmt, zlib.crc32(ih.tobinarray())))
393393
elif subtype.startswith("SHA"):
394394
if subtype == "SHA256":

0 commit comments

Comments
 (0)