File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -6100,13 +6100,11 @@ fold_tuple_on_constants(struct instr *inst,
61006100 PyTuple_SET_ITEM (newconst , i , constant );
61016101 }
61026102 Py_ssize_t index = PyList_GET_SIZE (consts );
6103- #if SIZEOF_SIZE_T > SIZEOF_INT
6104- if ((size_t )index >= UINT_MAX - 1 ) {
6103+ if ((size_t )index >= (size_t )INT_MAX - 1 ) {
61056104 Py_DECREF (newconst );
61066105 PyErr_SetString (PyExc_OverflowError , "too many constants" );
61076106 return -1 ;
61086107 }
6109- #endif
61106108 if (PyList_Append (consts , newconst )) {
61116109 Py_DECREF (newconst );
61126110 return -1 ;
@@ -6116,7 +6114,7 @@ fold_tuple_on_constants(struct instr *inst,
61166114 inst [i ].i_opcode = NOP ;
61176115 }
61186116 inst [n ].i_opcode = LOAD_CONST ;
6119- inst [n ].i_oparg = index ;
6117+ inst [n ].i_oparg = ( int ) index ;
61206118 return 0 ;
61216119}
61226120
You can’t perform that action at this time.
0 commit comments