Skip to content

Commit 4a0e2bd

Browse files
authored
Merge pull request #8330 from theotherjimmy/force-int-time
Tools: Fix Python3 + firmware header traeback
2 parents fd4f47d + 8d63ef6 commit 4a0e2bd

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
@@ -377,7 +377,7 @@ def _fill_header(region_list, current_region):
377377
elif type == "timestamp":
378378
fmt = {"32le": "<L", "64le": "<Q",
379379
"32be": ">L", "64be": ">Q"}[subtype]
380-
header.puts(start, struct.pack(fmt, time()))
380+
header.puts(start, struct.pack(fmt, int(time())))
381381
elif type == "size":
382382
fmt = {"32le": "<L", "64le": "<Q",
383383
"32be": ">L", "64be": ">Q"}[subtype]

0 commit comments

Comments
 (0)