[pypy-svn] r59395 - pypy/trunk/pypy/module/zlib
fijal at codespeak.net
fijal at codespeak.net
Sat Oct 25 13:33:56 CEST 2008
Author: fijal
Date: Sat Oct 25 13:33:53 2008
New Revision: 59395
Modified:
pypy/trunk/pypy/module/zlib/interp_zlib.py
Log:
fix test_zlib from cpython
Modified: pypy/trunk/pypy/module/zlib/interp_zlib.py
==============================================================================
--- pypy/trunk/pypy/module/zlib/interp_zlib.py (original)
+++ pypy/trunk/pypy/module/zlib/interp_zlib.py Sat Oct 25 13:33:53 2008
@@ -3,7 +3,7 @@
from pypy.interpreter.baseobjspace import Wrappable
from pypy.interpreter.typedef import TypeDef, interp_attrproperty
from pypy.interpreter.error import OperationError
-from pypy.rlib.rarithmetic import intmask
+from pypy.rlib.rarithmetic import intmask, r_uint
from pypy.rlib.objectmodel import keepalive_until_here
from pypy.rlib import rzlib
@@ -37,7 +37,7 @@
checksum = unsigned_to_signed_32bit(checksum)
return space.wrap(checksum)
-crc32.unwrap_spec = [ObjSpace, 'bufferstr', int]
+crc32.unwrap_spec = [ObjSpace, 'bufferstr', r_uint]
def adler32(space, string, start = rzlib.ADLER32_DEFAULT_START):
@@ -52,7 +52,7 @@
checksum = unsigned_to_signed_32bit(checksum)
return space.wrap(checksum)
-adler32.unwrap_spec = [ObjSpace, 'bufferstr', int]
+adler32.unwrap_spec = [ObjSpace, 'bufferstr', r_uint]
def zlib_error(space, msg):
More information about the Pypy-commit
mailing list