From: Raymond Hettinger Date: Wed, 19 Dec 2007 22:14:34 +0000 (+0000) Subject: Bigger range for non-extended opargs. X-Git-Tag: v2.6a1~824 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=70fcfd03bcedb920efe84f829ed354ea0a0b3d3f;p=python Bigger range for non-extended opargs. --- diff --git a/Python/compile.c b/Python/compile.c index 23047fd831..373440e217 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));