mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 22:10:21 +02:00
Fix compute-frame-sizes for case-lambda jumps
* module/system/vm/frame.scm (compute-frame-sizes): Fix for jumps to the next arity.
This commit is contained in:
parent
5333642b71
commit
4dcc97288d
1 changed files with 3 additions and 0 deletions
|
@ -103,6 +103,9 @@
|
|||
(define (find-idx n diff)
|
||||
(let lp ((n n) (diff diff))
|
||||
(cond
|
||||
((= n (vector-length parsed))
|
||||
;; Possible for jumps to alternate arities.
|
||||
#f)
|
||||
((negative? diff)
|
||||
(lp (1- n) (+ diff (vector-ref parsed (1- n)))))
|
||||
((positive? diff)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue