[pypy-svn] r54532 - pypy/dist/pypy/rpython/lltypesystem
arigo at codespeak.net
arigo at codespeak.net
Wed May 7 15:27:37 CEST 2008
Author: arigo
Date: Wed May 7 15:27:36 2008
New Revision: 54532
Modified:
pypy/dist/pypy/rpython/lltypesystem/opimpl.py
Log:
This should truncate! Fixes test_rbigint.
Modified: pypy/dist/pypy/rpython/lltypesystem/opimpl.py
==============================================================================
--- pypy/dist/pypy/rpython/lltypesystem/opimpl.py (original)
+++ pypy/dist/pypy/rpython/lltypesystem/opimpl.py Wed May 7 15:27:36 2008
@@ -289,8 +289,7 @@
def op_truncate_longlong_to_int(b):
assert type(b) is r_longlong
- assert -sys.maxint-1 <= b <= sys.maxint
- return int(b)
+ return intmask(b)
def op_cast_pointer(RESTYPE, obj):
checkptr(obj)
More information about the Pypy-commit
mailing list