1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 11:50:28 +02:00

Fix kw initializer bug in baseline compiler

* module/language/tree-il/compile-bytecode.scm (compile-closure): The
  first sym has index 1, not 0, because of the closure.
This commit is contained in:
Andy Wingo 2020-05-11 10:45:29 +02:00
parent dd4dc1f6c4
commit b99a63447b

View file

@ -1303,7 +1303,7 @@ in the frame with for the lambda-case clause @var{clause}."
(values aok? (values aok?
(map (match-lambda (map (match-lambda
((key name sym) ((key name sym)
(cons key (list-index syms sym)))) (cons key (1+ (list-index syms sym)))))
kw))))) kw)))))
(lambda (allow-other-keys? kw-indices) (lambda (allow-other-keys? kw-indices)
(when label (emit-label asm label)) (when label (emit-label asm label))