[Zodb-checkins] CVS: ZODB4/src/zodb/storage/file - pack.py:1.9
Jeremy Hylton
jeremy at zope.com
Tue Jun 24 17:38:44 EDT 2003
Update of /cvs-repository/ZODB4/src/zodb/storage/file
In directory cvs.zope.org:/tmp/cvs-serv7776
Modified Files:
pack.py
Log Message:
Promote int to long to avoid overflow w/ Python 2.2.
=== ZODB4/src/zodb/storage/file/pack.py 1.8 => 1.9 ===
--- ZODB4/src/zodb/storage/file/pack.py:1.8 Tue Jun 24 15:29:44 2003
+++ ZODB4/src/zodb/storage/file/pack.py Tue Jun 24 16:38:39 2003
@@ -81,7 +81,7 @@
self.findReachableFromFuture()
def buildPackIndex(self):
- pos = 1024
+ pos = 1024L
while pos < self.eof:
th = self._read_txn_header(pos)
if th.tid > self.packtime:
@@ -376,7 +376,7 @@
If any data records are copied, also write txn header (th).
"""
copy = False
- new_tpos = 0
+ new_tpos = 0L
tend = pos + th.tlen
pos += th.headerlen()
while pos < tend:
More information about the Zodb-checkins
mailing list