Skip to content

Commit bfb1df2

Browse files
fix assert
1 parent 948688f commit bfb1df2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/ceval_gil.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ _make_pending_calls(struct _pending_calls *pending, int32_t *p_npending)
858858
int32_t npending = -1;
859859
int32_t maxloop = pending->maxloop;
860860

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

0 commit comments

Comments
 (0)