Author: Matti Picus <[email protected]>
Branch: py3.5
Changeset: r92401:2ec9c954ee0a
Date: 2017-09-15 12:46 +0300
http://bitbucket.org/pypy/pypy/changeset/2ec9c954ee0a/
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
@@ -943,7 +943,7 @@
res = PyType_GenericAlloc(space, space.w_type, 0)
res = cts.cast('PyHeapTypeObject *', res)
typ = res.c_ht_type
- typ.c_tp_flags = rffi.cast(lltype.Signed, spec.c_flags)
+ typ.c_tp_flags = rffi.cast(lltype.Unsigned, spec.c_flags)
typ.c_tp_flags |= Py_TPFLAGS_HEAPTYPE
specname = rffi.charp2str(cts.cast('char*', spec.c_name))
dotpos = specname.rfind('.')
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit