Author: Tim Felgentreff <[email protected]>
Branch: rbitblt
Changeset: r557:ff0c5aeb1539
Date: 2014-01-08 13:30 +0100
http://bitbucket.org/pypy/lang-smalltalk/changeset/ff0c5aeb1539/

Log:    fix a segv, fix translation

diff --git a/spyvm/plugins/bitblt.py b/spyvm/plugins/bitblt.py
--- a/spyvm/plugins/bitblt.py
+++ b/spyvm/plugins/bitblt.py
@@ -9,7 +9,7 @@
 
 BitBltPlugin = Plugin()
 
[email protected]_primitive(unwrap_spec=[object], clean_stack=False)
[email protected]_primitive(unwrap_spec=[object], clean_stack=True)
 def primitiveCopyBits(interp, s_frame, w_rcvr):
     from spyvm.interpreter import Return
     if not isinstance(w_rcvr, model.W_PointersObject) or w_rcvr.size() < 15:
@@ -730,10 +730,7 @@
             w_self = self.w_self()
             assert isinstance(w_self, model.W_PointersObject)
             w_self._shadow = None
-            raise PrimitiveFailedError("Bits (%s) in %s are not words or 
displaybitmap" % (
-                self.w_bits.as_repr_string(),
-                w_self.as_repr_string()
-            ))
+            raise PrimitiveFailedError("Bits in are not words or 
displaybitmap")
         self.width = self.space.unwrap_int(self.fetch(1))
         self.height = self.space.unwrap_int(self.fetch(2))
         self.depth = self.space.unwrap_int(self.fetch(3))
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to