[pypy-commit] pypy multiphase: fix translation

rlamy pypy.commits at gmail.com
Thu Jun 15 12:10:31 EDT 2017


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: multiphase
Changeset: r91609:bb2c4b519f09
Date: 2017-06-15 17:09 +0100
http://bitbucket.org/pypy/pypy/changeset/bb2c4b519f09/

Log:	fix translation

diff --git a/pypy/module/cpyext/typeobject.py b/pypy/module/cpyext/typeobject.py
--- a/pypy/module/cpyext/typeobject.py
+++ b/pypy/module/cpyext/typeobject.py
@@ -909,7 +909,7 @@
     typ = res.c_ht_type
     typ.c_tp_flags = rffi.cast(lltype.Signed, spec.c_flags)
     typ.c_tp_flags |= Py_TPFLAGS_HEAPTYPE
-    specname = rffi.charp2str(spec.c_name)
+    specname = rffi.charp2str(cts.cast('char*', spec.c_name))
     dotpos = specname.rfind('.')
     if dotpos < 0:
         name = specname


More information about the pypy-commit mailing list