From 88ad288345308da8dae779bc510ca1dcd5db8f10 Mon Sep 17 00:00:00 2001 From: David Hewitt <1939362+davidhewitt@users.noreply.github.com> Date: Thu, 18 Aug 2022 07:56:59 +0100 Subject: [PATCH] ffi: swap field order in PyCodeObject for 3.11 --- pyo3-ffi/src/cpython/code.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyo3-ffi/src/cpython/code.rs b/pyo3-ffi/src/cpython/code.rs index f240a64e..46bc6d5c 100644 --- a/pyo3-ffi/src/cpython/code.rs +++ b/pyo3-ffi/src/cpython/code.rs @@ -76,8 +76,8 @@ pub struct PyCodeObject { pub co_linetable: *mut PyObject, pub co_weakreflist: *mut PyObject, pub _co_code: *mut PyObject, - pub _co_firsttraceable: c_int, pub _co_linearray: *mut c_char, + pub _co_firsttraceable: c_int, pub co_extra: *mut c_void, pub co_code_adaptive: [c_char; 1], }