mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-29 22:40:34 +02:00
simplify make-struct
* libguile/vm-i-scheme.c: Use DROPN idiom.
This commit is contained in:
parent
9a974fd384
commit
c99865c123
1 changed files with 1 additions and 2 deletions
|
@ -443,8 +443,7 @@ VM_DEFINE_INSTRUCTION (166, make_struct, "make-struct", 2, -1, 1)
|
|||
else
|
||||
ret = scm_c_make_structv (vtable, 0, n - 1, (scm_t_bits *) inits);
|
||||
|
||||
sp -= n;
|
||||
NULLSTACK (n);
|
||||
DROPN (n);
|
||||
PUSH (ret);
|
||||
|
||||
NEXT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue