Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix #if
  • Loading branch information
vstinner committed Dec 7, 2018
commit 7a97ab6f663b39acd5df0920e04f53fec23588dc
2 changes: 1 addition & 1 deletion Python/peephole.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ fold_tuple_on_constants(_Py_CODEUNIT *codestr, Py_ssize_t codelen,
PyTuple_SET_ITEM(newconst, i, constant);
}

#if SIZEOF_SIZE_T > SIZEOF_INT
Py_ssize_t index = PyList_GET_SIZE(consts);
Comment thread
vstinner marked this conversation as resolved.
#if SIZEOF_SIZE_T > SIZEOF_INT
if ((size_t)index >= UINT_MAX - 1) {
Comment thread
vstinner marked this conversation as resolved.
Py_DECREF(newconst);
PyErr_SetString(PyExc_OverflowError, "too many constants");
Expand Down