summaryrefslogtreecommitdiff
path: root/Python/compile.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-12-02 21:33:05 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2016-12-02 21:33:05 +0200
commitedde41d53461acc888c73aedd16c4a218848526e (patch)
tree70176b7d373ae46a091ad316f43c20d1c223f40e /Python/compile.c
parent720946323027f5bfb31c006cc9b3ce983af8291f (diff)
parentbfd49e943b6ca6172715524e1676b66208b59167 (diff)
downloadcpython-edde41d53461acc888c73aedd16c4a218848526e.tar.gz
Null merge
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/Python/compile.c b/Python/compile.c
index a8d7fcd717..62f1c3f3f3 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -3344,11 +3344,8 @@ compiler_dict(struct compiler *c, expr_ty e)
/* If there is more than one dict, they need to be merged into a new
* dict. If there is one dict and it's an unpacking, then it needs
* to be copied into a new dict." */
- while (containers > 1 || is_unpacking) {
- int oparg = containers < 255 ? containers : 255;
- ADDOP_I(c, BUILD_MAP_UNPACK, oparg);
- containers -= (oparg - 1);
- is_unpacking = 0;
+ if (containers > 1 || is_unpacking) {
+ ADDOP_I(c, BUILD_MAP_UNPACK, containers);
}
return 1;
}
@@ -4039,7 +4036,7 @@ compiler_visit_keyword(struct compiler *c, keyword_ty k)
static int
expr_constant(struct compiler *c, expr_ty e)
{
- char *id;
+ const char *id;
switch (e->kind) {
case Ellipsis_kind:
return 1;