Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: scoder <stefan_ml@behnel.de>
  • Loading branch information
methane and scoder authored Oct 22, 2020
commit 66d7d80a804867f89688cf7d2c16d2f5c591a874
3 changes: 1 addition & 2 deletions Include/internal/pycore_interp.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ struct _Py_float_state {
};

struct _Py_long_state {
// Special free list; same to _Py_float_state but for PyLongObjects.
// Special free list; similar to _Py_float_state but for PyLongObjects.
int numfree;
PyLongObject *free_list;
};
Expand Down Expand Up @@ -297,4 +297,3 @@ PyAPI_FUNC(void) _PyInterpreterState_IDDecref(struct _is *);
}
#endif
#endif /* !Py_INTERNAL_INTERP_H */

2 changes: 1 addition & 1 deletion Objects/longobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ _PyLong_New(Py_ssize_t size)
{
struct _Py_long_state *state = &_PyInterpreterState_GET()->long_state;
#ifdef Py_DEBUG
// _PyLong_New() must not be called after _PyFloat_Fini()
// _PyLong_New() must not be called after _PyLong_Fini()
assert(state->numfree != -1);
#endif

Expand Down