1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 05:50:26 +02:00

Fix subr-call

* libguile/vm-engine.c (subr-call): Fix for locals count including the
  procedure.
This commit is contained in:
Andy Wingo 2013-10-17 23:21:29 +02:00
parent e93c0430fa
commit 8d23c43641

View file

@ -1147,7 +1147,7 @@ RTL_VM_NAME (SCM vm, SCM program, SCM *argv, size_t nargs_)
VM_HANDLE_INTERRUPTS;
SYNC_IP ();
switch (FRAME_LOCALS_COUNT ())
switch (FRAME_LOCALS_COUNT () - 1)
{
case 0:
ret = subr ();