Author: Antonio Cuni <anto.c...@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)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to