diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-11-19 23:03:25 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-11-19 23:03:25 +0100 |
commit | 814032716938b817faa2ece644ac6dc86cff8052 (patch) | |
tree | 84e2987dbb24761d15aff752233cd143cc19e86c /Python/compile.c | |
parent | 1080ebd8c165c4e1d6793745774fa99d7a42f78d (diff) | |
download | cpython-814032716938b817faa2ece644ac6dc86cff8052.tar.gz |
Issue #9566, #19617: New try to fix compilation on Windows
Some compilers (ex: Visual Studio) decode -2147483648 as a unsigned integer
instead of an signed integer.
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c index 2c8db48651..78841d37da 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -1183,7 +1183,7 @@ 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(-2147483648 <= opcode); + assert((-2147483647-1) <= opcode); assert(opcode <= 2147483647); off = compiler_next_instr(c, c->u->u_curblock); |