Commit 28ab567c authored by Shane Hathaway's avatar Shane Hathaway

Correction for large seek pointers. This fixes an issue that prevented

FileStorage from expanding to 2 GB.
parent 516b5076
...@@ -96,9 +96,9 @@ def p64(v, pack=struct.pack): ...@@ -96,9 +96,9 @@ def p64(v, pack=struct.pack):
def u64(v, unpack=struct.unpack): def u64(v, unpack=struct.unpack):
h, v = unpack(">ii", v) h, v = unpack(">ii", v)
if v < 0: v=t32-v if v < 0: v=t32+v
if h: if h:
if h < 0: h=t32-h if h < 0: h=t32+h
v=h*t32+v v=h*t32+v
return v return v
......
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