Skip to content

Commit

Permalink
Fix off-by-one
Browse files Browse the repository at this point in the history
  • Loading branch information
colesbury committed Jan 16, 2025
1 parent f0a6af3 commit 1445c28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/uniqueid.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ _PyObject_FinalizeUniqueIdPool(PyInterpreterState *interp)
if (obj != NULL) {
Py_ssize_t id = clear_unique_id(obj);
(void)id;
assert(id == i);
assert(id == i + 1);
}
}
PyMem_Free(pool->table);
Expand Down

0 comments on commit 1445c28

Please sign in to comment.