Skip to content

Commit

Permalink
Merge pull request #8330 from theotherjimmy/force-int-time
Browse files Browse the repository at this point in the history
Tools: Fix Python3 + firmware header traeback
  • Loading branch information
0xc0170 authored Oct 9, 2018
2 parents fd4f47d + 8d63ef6 commit 4a0e2bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/build_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def _fill_header(region_list, current_region):
elif type == "timestamp":
fmt = {"32le": "<L", "64le": "<Q",
"32be": ">L", "64be": ">Q"}[subtype]
header.puts(start, struct.pack(fmt, time()))
header.puts(start, struct.pack(fmt, int(time())))
elif type == "size":
fmt = {"32le": "<L", "64le": "<Q",
"32be": ">L", "64be": ">Q"}[subtype]
Expand Down

0 comments on commit 4a0e2bd

Please sign in to comment.