diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-11-19 22:28:01 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-11-19 22:28:01 +0100 |
commit | 1080ebd8c165c4e1d6793745774fa99d7a42f78d (patch) | |
tree | f6d4d284824db3dd792b1e420a4a4407cb7b91e6 /Python/compile.c | |
parent | 4bcc16eb5291c2e256c86e9316cae5a4001cbe70 (diff) | |
download | cpython-1080ebd8c165c4e1d6793745774fa99d7a42f78d.tar.gz |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/compile.c b/Python/compile.c index dde6dcff4b..2c8db48651 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) |