Author: Lars Wassermann <[email protected]>
Branch:
Changeset: r495:50042e3907a0
Date: 2013-07-15 14:20 +0200
http://bitbucket.org/pypy/lang-smalltalk/changeset/50042e3907a0/
Log: fixed a bug with type conversion when interpreting
diff --git a/spyvm/model.py b/spyvm/model.py
--- a/spyvm/model.py
+++ b/spyvm/model.py
@@ -284,7 +284,7 @@
if shift == 0:
return self
# a problem might arrise, because we may shift in ones from left
- mask = (1 << (32 - shift))- 1
+ mask = intmask((1 << (32 - shift))- 1)
# the mask is only valid if the highest bit of self.value is set
# and only in this case we do need such a mask
return space.wrap_int((self.value >> shift) & mask)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit