[pypy-commit] pypy newmemoryview-app-level: fix

mattip pypy.commits at gmail.com
Mon Feb 25 02:25:28 EST 2019


Author: Matti Picus <matti.picus at gmail.com>
Branch: newmemoryview-app-level
Changeset: r96159:c71067a1a79a
Date: 2019-02-24 23:51 +0200
http://bitbucket.org/pypy/pypy/changeset/c71067a1a79a/

Log:	fix

diff --git a/pypy/module/cpyext/memoryobject.py b/pypy/module/cpyext/memoryobject.py
--- a/pypy/module/cpyext/memoryobject.py
+++ b/pypy/module/cpyext/memoryobject.py
@@ -43,7 +43,7 @@
         view.c_buf = rffi.cast(rffi.VOIDP, w_obj.view.get_raw_address())
         # not used in PyPy to keep something alive,
         # but some c-extensions check the type without checking for NULL
-        view.c_obj = make_ref(space.w_None)
+        view.c_obj = make_ref(space, space.w_None)
         rffi.setintfield(view, 'c_readonly', w_obj.view.readonly)
     except ValueError:
         w_s = w_obj.descr_tobytes(space)


More information about the pypy-commit mailing list