summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2007-12-19 22:14:34 (GMT)
committerRaymond Hettinger <python@rcn.com>2007-12-19 22:14:34 (GMT)
commit70fcfd03bcedb920efe84f829ed354ea0a0b3d3f (patch)
tree64ef9c640206ca3380a851a3a695bf73ee7ce423 /Python
parent02de8979ccc09d1ef5162f64dbc9e546dae2da4e (diff)
downloadcpython-70fcfd03bcedb920efe84f829ed354ea0a0b3d3f.zip
cpython-70fcfd03bcedb920efe84f829ed354ea0a0b3d3f.tar.gz
cpython-70fcfd03bcedb920efe84f829ed354ea0a0b3d3f.tar.bz2
Bigger range for non-extended opargs.
Diffstat (limited to 'Python')
-rw-r--r--Python/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 23047fd..373440e 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -2923,7 +2923,7 @@ compiler_visit_expr(struct compiler *c, expr_ty e)
return compiler_ifexp(c, e);
case Dict_kind:
n = asdl_seq_LEN(e->v.Dict.values);
- ADDOP_I(c, BUILD_MAP, (n>255 ? 255 : n));
+ ADDOP_I(c, BUILD_MAP, (n>0xFFFF ? 0xFFFF : n));
for (i = 0; i < n; i++) {
VISIT(c, expr,
(expr_ty)asdl_seq_GET(e->v.Dict.values, i));