Author: Ronan Lamy <ronan.l...@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 _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit