mirror of
https://github.com/python/cpython.git
synced 2025-08-28 04:35:02 +00:00
The code to write timestamps couldn't handle negative times (and time
on the Mac is negativevalues > 0x80000000). Fixed.
This commit is contained in:
parent
0009c4ea59
commit
2d0589be67
1 changed files with 2 additions and 0 deletions
|
@ -19,6 +19,8 @@ def write32(output, value):
|
|||
output.write(struct.pack("<l", value))
|
||||
|
||||
def write32u(output, value):
|
||||
if value < 0:
|
||||
value = value + 0x100000000L
|
||||
output.write(struct.pack("<L", value))
|
||||
|
||||
def read32(input):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue