Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b679a2e

Browse files
committed
Issue #9566, #19617: Fix compilation on Windows
INT32_MIN and INT32_MAX constants are unknown on Windows.
1 parent ad9a066 commit b679a2e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Python/compile.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,8 +1183,8 @@ compiler_addop_i(struct compiler *c, Py_ssize_t opcode, Py_ssize_t oparg)
11831183

11841184
/* Integer arguments are limit to 16-bit. There is an extension for 32-bit
11851185
integer arguments. */
1186-
assert(INT32_MIN <= opcode);
1187-
assert(opcode <= INT32_MAX);
1186+
assert(-2147483648 <= opcode);
1187+
assert(opcode <= 2147483647);
11881188

11891189
off = compiler_next_instr(c, c->u->u_curblock);
11901190
if (off < 0)

0 commit comments

Comments
 (0)