[pypy-commit] pypy cpyext-nowrapper: bah

antocuni pypy.commits at gmail.com
Sat Oct 7 09:11:36 EDT 2017


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: cpyext-nowrapper
Changeset: r92630:259118ef27be
Date: 2017-10-07 12:45 +0200
http://bitbucket.org/pypy/pypy/changeset/259118ef27be/

Log:	bah

diff --git a/pypy/module/cpyext/object.py b/pypy/module/cpyext/object.py
--- a/pypy/module/cpyext/object.py
+++ b/pypy/module/cpyext/object.py
@@ -52,7 +52,7 @@
 def _PyObject_NewVar(space, tp, nitems):
     from pypy.module.cpyext.pyobject import _allocate_generic_object
     state = space.fromcache(State)
-    if tp is state.C._PyPy_get_PyType_Type():
+    if tp == state.C._PyPy_get_PyType_Type():
         w_type = from_ref(space, rffi.cast(PyObject, tp))
         assert isinstance(w_type, W_TypeObject)
         typedescr = get_typedescr(w_type.layout.typedef)


More information about the pypy-commit mailing list