[pypy-commit] lang-smalltalk default: fixed a bug with type conversion when interpreting
lwassermann
noreply at buildbot.pypy.org
Mon Jul 15 18:00:36 CEST 2013
Author: Lars Wassermann <lars.wassermann at gmail.com>
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)
More information about the pypy-commit
mailing list