]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #9566, #19617: Fix compilation on Windows
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 19 Nov 2013 21:28:01 +0000 (22:28 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 19 Nov 2013 21:28:01 +0000 (22:28 +0100)
INT32_MIN and INT32_MAX constants are unknown on Windows.

Python/compile.c

index dde6dcff4bdcd99f3ee912ca3251e82584c0ba52..2c8db4865111c2181ca560c0da083d467517ffb9 100644 (file)
@@ -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)