Commit a183fc65 authored by Victor Stinner's avatar Victor Stinner

Issue #9566, #19617: Fix compilation on Windows

INT32_MIN and INT32_MAX constants are unknown on Windows.
parent 7e0753b3
......@@ -1183,8 +1183,8 @@ compiler_addop_i(struct compiler *c, Py_ssize_t opcode, Py_ssize_t oparg)
/* Integer arguments are limit to 16-bit. There is an extension for 32-bit
integer arguments. */
assert(INT32_MIN <= opcode);
assert(opcode <= INT32_MAX);
assert(-2147483648 <= opcode);
assert(opcode <= 2147483647);
off = compiler_next_instr(c, c->u->u_curblock);
if (off < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment