[pypy-svn] r50391 - pypy/dist/pypy/module/bz2

fijal at codespeak.net fijal at codespeak.net
Sun Jan 6 16:48:07 CET 2008


Author: fijal
Date: Sun Jan  6 16:48:07 2008
New Revision: 50391

Modified:
   pypy/dist/pypy/module/bz2/interp_bz2.py
Log:
Fix for 64 bit.


Modified: pypy/dist/pypy/module/bz2/interp_bz2.py
==============================================================================
--- pypy/dist/pypy/module/bz2/interp_bz2.py	(original)
+++ pypy/dist/pypy/module/bz2/interp_bz2.py	Sun Jan  6 16:48:07 2008
@@ -8,6 +8,7 @@
 from pypy.interpreter.gateway import ObjSpace, W_Root, NoneNotWrapped, interp2app, Arguments
 from pypy.rlib.streamio import Stream
 from pypy.translator.tool.cbuild import ExternalCompilationInfo
+from pypy.rlib.rarithmetic import intmask
 import sys
 
 class CConfig:
@@ -417,7 +418,7 @@
             raise OperationError(self.space.w_ValueError,
                 self.space.wrap("compresslevel must be between 1 and 9"))
 
-        bzerror = BZ2_bzCompressInit(self.bzs, compresslevel, 0, 0)
+        bzerror = intmask(BZ2_bzCompressInit(self.bzs, compresslevel, 0, 0))
         if bzerror != BZ_OK:
             _catch_bz2_error(self.space, bzerror)
         



More information about the Pypy-commit mailing list