Skip to content

Commit

Permalink
Fix address arithmetic bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum committed Apr 20, 2024
1 parent f2e10eb commit e748e8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/optimizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ executor_traverse(PyObject *o, visitproc visit, void *arg)
static int
executor_is_gc(PyObject *o)
{
if ((void*)COLD_EXITS <= (void*)o && (void*)o < (void*)COLD_EXITS + UOP_MAX_TRACE_LENGTH) {
if ((PyObject *)&COLD_EXITS[0] <= o && o < (PyObject *)&COLD_EXITS[UOP_MAX_TRACE_LENGTH]) {
return 0;
}
return 1;
Expand Down

0 comments on commit e748e8a

Please sign in to comment.