diff options
author | Victor Stinner <vstinner@python.org> | 2021-04-28 11:40:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-28 11:40:44 (GMT) |
commit | 32c5a174445ec93747240cd8472012276ed27acf (patch) | |
tree | 4543061a1faff9636786507ef6edc69bc1a66692 /Include | |
parent | 21b02b5f4018474620676be04310f7d230a464ea (diff) | |
download | cpython-32c5a174445ec93747240cd8472012276ed27acf.zip cpython-32c5a174445ec93747240cd8472012276ed27acf.tar.gz cpython-32c5a174445ec93747240cd8472012276ed27acf.tar.bz2 |
bpo-43962: Fix _PyInterpreterState_IDIncref() (GH-25683)
_PyInterpreterState_IDIncref() now calls
_PyInterpreterState_IDInitref() and always increments id_refcount.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_interp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/internal/pycore_interp.h b/Include/internal/pycore_interp.h index dbdd109..11d31da 100644 --- a/Include/internal/pycore_interp.h +++ b/Include/internal/pycore_interp.h @@ -338,7 +338,7 @@ struct _xidregitem { PyAPI_FUNC(struct _is*) _PyInterpreterState_LookUpID(int64_t); PyAPI_FUNC(int) _PyInterpreterState_IDInitref(struct _is *); -PyAPI_FUNC(void) _PyInterpreterState_IDIncref(struct _is *); +PyAPI_FUNC(int) _PyInterpreterState_IDIncref(struct _is *); PyAPI_FUNC(void) _PyInterpreterState_IDDecref(struct _is *); #ifdef __cplusplus |