diff options
author | Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> | 2022-06-24 17:55:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-24 17:55:18 (GMT) |
commit | 50a5ab2c0bf7bd10d85e80c9f71a7b7245a0682a (patch) | |
tree | 7a1db90f15efc86854a72de9172aad4f4a28b173 /Objects/codeobject.c | |
parent | a91ffcf3fa15ce3884f620c799566aa734412f9d (diff) | |
download | cpython-50a5ab2c0bf7bd10d85e80c9f71a7b7245a0682a.zip cpython-50a5ab2c0bf7bd10d85e80c9f71a7b7245a0682a.tar.gz cpython-50a5ab2c0bf7bd10d85e80c9f71a7b7245a0682a.tar.bz2 |
gh-93382: Sync up `co_code` changes with 3.11 (GH-94227)
Sync up co_code changes with 3.11 commit 852b4d4bcd12b0b6839a015a262ce976b134f6f3.
Diffstat (limited to 'Objects/codeobject.c')
-rw-r--r-- | Objects/codeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c index 707de11..c38c51b 100644 --- a/Objects/codeobject.c +++ b/Objects/codeobject.c @@ -1440,7 +1440,7 @@ _PyCode_GetCode(PyCodeObject *co) } deopt_code((_Py_CODEUNIT *)PyBytes_AS_STRING(code), Py_SIZE(co)); assert(co->_co_code == NULL); - co->_co_code = (void *)Py_NewRef(code); + co->_co_code = Py_NewRef(code); return code; } |