Skip to content

Commit 9adc696

Browse files
committed
Py_SSIZE_T_MAX --> INT_MAX
1 parent 8cfd0c0 commit 9adc696

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6606,7 +6606,7 @@ assemble_emit_linetable_pair(struct assembler *a, int bdelta, int ldelta)
66066606
{
66076607
Py_ssize_t len = PyBytes_GET_SIZE(a->a_lnotab);
66086608
if (a->a_lnotab_off >= len - 2) {
6609-
if (len > PY_SSIZE_T_MAX / 2) {
6609+
if (len > INT_MAX / 2) {
66106610
PyErr_NoMemory();
66116611
return 0;
66126612
}

0 commit comments

Comments
 (0)