Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 committed Jan 10, 2024
1 parent 6b464c4 commit 4c9bbe6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Objects/floatobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,7 @@ PyFloat_FromDouble(double fval)
#ifdef WITH_FREELISTS
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
if (op != NULL && state->numfree > 0) {
state->free_list = (PyFloatObject *) Py_TYPE(op);
state->numfree--;
OBJECT_STAT_INC(from_freelist);
Expand Down

0 comments on commit 4c9bbe6

Please sign in to comment.