[Python-checkins] cpython: Issue #9566, #19617: Fix compilation on Windows
victor.stinner
python-checkins at python.org
Tue Nov 19 22:28:15 CET 2013
http://hg.python.org/cpython/rev/8d3e85dfa46f
changeset: 87278:8d3e85dfa46f
user: Victor Stinner <victor.stinner at gmail.com>
date: Tue Nov 19 22:28:01 2013 +0100
summary:
Issue #9566, #19617: Fix compilation on Windows
INT32_MIN and INT32_MAX constants are unknown on Windows.
files:
Python/compile.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Python/compile.c b/Python/compile.c
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -1183,8 +1183,8 @@
/* 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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list