summaryrefslogtreecommitdiffstats
path: root/Objects/floatobject.c
diff options
context:
space:
mode:
authorDonghee Na <donghee.na@python.org>2024-01-26 15:25:16 (GMT)
committerGitHub <noreply@github.com>2024-01-26 15:25:16 (GMT)
commit699779256ec4d4b8afb8211de08ef1382c78c370 (patch)
tree34b4bbdf255c6a4304dbb19399b28d5f6e351651 /Objects/floatobject.c
parent504334c7be5a56237df2598d338cd494a42fca4c (diff)
downloadcpython-699779256ec4d4b8afb8211de08ef1382c78c370.zip
cpython-699779256ec4d4b8afb8211de08ef1382c78c370.tar.gz
cpython-699779256ec4d4b8afb8211de08ef1382c78c370.tar.bz2
gh-111968: Unify freelist naming schema to Eric's suggestion (gh-114581)
Diffstat (limited to 'Objects/floatobject.c')
-rw-r--r--Objects/floatobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c
index 912c450..b7611d5 100644
--- a/Objects/floatobject.c
+++ b/Objects/floatobject.c
@@ -32,7 +32,7 @@ get_float_state(void)
{
_PyFreeListState *state = _PyFreeListState_GET();
assert(state != NULL);
- return &state->float_state;
+ return &state->floats;
}
#endif
@@ -1993,7 +1993,7 @@ void
_PyFloat_ClearFreeList(_PyFreeListState *freelist_state, int is_finalization)
{
#ifdef WITH_FREELISTS
- struct _Py_float_state *state = &freelist_state->float_state;
+ struct _Py_float_state *state = &freelist_state->floats;
PyFloatObject *f = state->free_list;
while (f != NULL) {
PyFloatObject *next = (PyFloatObject*) Py_TYPE(f);