Author: Hubert Hesse <[email protected]>
Branch: stmgc-c7
Changeset: r845:33317024f2e6
Date: 2014-06-12 20:14 +0200
http://bitbucket.org/pypy/lang-smalltalk/changeset/33317024f2e6/
Log: Float asString produced wrong results because image instances were
read wrongly
diff --git a/spyvm/squeakimage.py b/spyvm/squeakimage.py
--- a/spyvm/squeakimage.py
+++ b/spyvm/squeakimage.py
@@ -561,8 +561,9 @@
return bytes[:stop] # omit odd bytes
def get_ruints(self, required_len=-1):
- from rpython.rlib.rarithmetic import r_uint
- words = [r_uint(x) for x in self.chunk.data]
+ from rpython.rlib.rarithmetic import r_uint32
+ # XXX: Fix for 64bit image support
+ words = [r_uint32(x) for x in self.chunk.data]
if required_len != -1 and len(words) != required_len:
raise CorruptImageError("Expected %d words, got %d" %
(required_len, len(words)))
return words
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit