diff options
author | Donghee Na <donghee.na@python.org> | 2024-01-12 00:31:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-12 00:31:28 (GMT) |
commit | efa738e862da26f870ca659b01ff732649f400a7 (patch) | |
tree | 19c39fb02cb3089910fe65aaa235e918b68d0d6c /Objects/floatobject.c | |
parent | 53d2e1f26c3fca88a9217f1935cb288f4ba78464 (diff) | |
download | cpython-efa738e862da26f870ca659b01ff732649f400a7.zip cpython-efa738e862da26f870ca659b01ff732649f400a7.tar.gz cpython-efa738e862da26f870ca659b01ff732649f400a7.tar.bz2 |
gh-111968: Explicit handling for finalized freelist (gh-113929)
Diffstat (limited to 'Objects/floatobject.c')
-rw-r--r-- | Objects/floatobject.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c index f1a09c0..912c450 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -132,10 +132,6 @@ PyFloat_FromDouble(double fval) struct _Py_float_state *state = get_float_state(); op = state->free_list; if (op != NULL) { -#ifdef Py_DEBUG - // PyFloat_FromDouble() must not be called after _PyFloat_Fini() - assert(state->numfree != -1); -#endif state->free_list = (PyFloatObject *) Py_TYPE(op); state->numfree--; OBJECT_STAT_INC(from_freelist); |