codegen.c: fix a bug in super with keyword arguments; fix #5660

This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-03-03 14:46:54 +09:00
committed by mimaki
parent 9424e4d4cf
commit c627e3b2ab
+1 -1
View File
@@ -2851,7 +2851,7 @@ codegen(codegen_scope *s, node *tree, int val)
}
}
/* keyword arguments */
if (s2 && (s2->ainfo & 0x1) && tree->cdr->car) {
if (tree->cdr->car) {
nk = gen_hash(s, tree->cdr->car->cdr, VAL, 14);
if (nk < 0) {st++; nk = 15;}
else st += nk*2;