summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-11-19 21:28:01 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-11-19 21:28:01 (GMT)
commitb679a2eb781091b497fabc8493d7ba33d57ebf41 (patch)
treef066a598436294703f197105ae0332b1a59c2c75 /Python/compile.c
parentad9a066050ff4cf7863b9ed4dc24e284a077c1de (diff)
downloadcpython-b679a2eb781091b497fabc8493d7ba33d57ebf41.zip
cpython-b679a2eb781091b497fabc8493d7ba33d57ebf41.tar.gz
cpython-b679a2eb781091b497fabc8493d7ba33d57ebf41.tar.bz2
Issue #9566, #19617: Fix compilation on Windows
INT32_MIN and INT32_MAX constants are unknown on Windows.
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/compile.c b/Python/compile.c
index dde6dcf..2c8db48 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -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)