Author: Antonio Cuni <[email protected]>
Branch: fast_cffi_list_init
Changeset: r67274:597b01c88a5a
Date: 2013-10-10 10:57 +0200
http://bitbucket.org/pypy/pypy/changeset/597b01c88a5a/

Log:    rpython fix

diff --git a/pypy/module/_cffi_backend/ctypeptr.py 
b/pypy/module/_cffi_backend/ctypeptr.py
--- a/pypy/module/_cffi_backend/ctypeptr.py
+++ b/pypy/module/_cffi_backend/ctypeptr.py
@@ -69,13 +69,13 @@
         float_strategy = self.space.fromcache(FloatListStrategy)
         #
         if w_ob.strategy is int_stragegy and self.ctitem.is_long():
-            int_list = w_ob.strategy.unerase(w_ob.lstorage)
+            int_list = IntegerListStrategy.unerase(w_ob.lstorage)
             cdata = rffi.cast(rffi.LONGP, cdata)
             copy_list_to_raw_array(int_list, cdata)
             return True
         #
         if w_ob.strategy is float_strategy and self.ctitem.is_double():
-            float_list = w_ob.strategy.unerase(w_ob.lstorage)
+            float_list = FloatListStrategy.unerase(w_ob.lstorage)
             cdata = rffi.cast(rffi.DOUBLEP, cdata)
             copy_list_to_raw_array(float_list, cdata)
             return True
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to