Kaydet (Commit) 2d0589be authored tarafından Jack Jansen's avatar Jack Jansen

The code to write timestamps couldn't handle negative times (and time

on the Mac is negativevalues > 0x80000000). Fixed.
üst 0009c4ea
...@@ -19,6 +19,8 @@ def write32(output, value): ...@@ -19,6 +19,8 @@ def write32(output, value):
output.write(struct.pack("<l", value)) output.write(struct.pack("<l", value))
def write32u(output, value): def write32u(output, value):
if value < 0:
value = value + 0x100000000L
output.write(struct.pack("<L", value)) output.write(struct.pack("<L", value))
def read32(input): def read32(input):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment