Skip to content

Commit

Permalink
fix assert
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaraditya303 authored Oct 16, 2024
1 parent 948688f commit bfb1df2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/ceval_gil.c
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ _make_pending_calls(struct _pending_calls *pending, int32_t *p_npending)
int32_t npending = -1;
int32_t maxloop = pending->maxloop;

assert(maxloop == INT32_MAX || maxloop == 100);
assert(maxloop == MAXPENDINGCALLSLOOP || maxloop == MAXPENDINGCALLSLOOP_MAIN);
/* perform a bounded number of calls, in case of recursion */
for (int i=0; i<maxloop; i++) {
_Py_pending_call_func func = NULL;
Expand Down

0 comments on commit bfb1df2

Please sign in to comment.