[pypy-commit] pypy ffistruct: we can't promote strings

antocuni noreply at buildbot.pypy.org
Wed Sep 7 19:14:56 CEST 2011


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: ffistruct
Changeset: r47150:ba6f286d77a8
Date: 2011-09-07 17:55 +0200
http://bitbucket.org/pypy/pypy/changeset/ba6f286d77a8/

Log:	we can't promote strings

diff --git a/pypy/module/_ffi/interp_struct.py b/pypy/module/_ffi/interp_struct.py
--- a/pypy/module/_ffi/interp_struct.py
+++ b/pypy/module/_ffi/interp_struct.py
@@ -46,7 +46,7 @@
     def allocate(self, space):
         return W__StructInstance(self)
 
-    @jit.elidable_promote()
+    @jit.elidable_promote('0')
     def get_type_and_offset_for_field(self, name):
         try:
             w_field = self.name2w_field[name]


More information about the pypy-commit mailing list