Author: Armin Rigo <[email protected]>
Branch: py3.6
Changeset: r98303:15207108964c
Date: 2019-12-16 19:26 +0100
http://bitbucket.org/pypy/pypy/changeset/15207108964c/

Log:    hg merge default

diff --git a/pypy/module/_cffi_backend/realize_c_type.py 
b/pypy/module/_cffi_backend/realize_c_type.py
--- a/pypy/module/_cffi_backend/realize_c_type.py
+++ b/pypy/module/_cffi_backend/realize_c_type.py
@@ -452,9 +452,10 @@
                 "really need support for your case.")
         x = realize_c_type_or_func_now(ffi, op, opcodes, index)
 
-    if from_ffi:
-        assert ffi.cached_types[index] is None or ffi.cached_types[index] is x
-        ffi.cached_types[index] = x
+        if from_ffi:
+            old = ffi.cached_types[index]
+            assert old is None or old is x
+            ffi.cached_types[index] = x
 
     return x
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to