aboutsummaryrefslogtreecommitdiffstats
path: root/src/bytecode.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bytecode.c')
-rw-r--r--src/bytecode.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bytecode.c b/src/bytecode.c
index 9bf6ae45ce9..1ad01aaf8f7 100644
--- a/src/bytecode.c
+++ b/src/bytecode.c
@@ -500,7 +500,9 @@ exec_byte_code (Lisp_Object bytestr, Lisp_Object vector, Lisp_Object maxdepth,
500 optional = 1; 500 optional = 1;
501 else if (EQ (XCAR (at), Qand_rest)) 501 else if (EQ (XCAR (at), Qand_rest))
502 { 502 {
503 PUSH (Flist (nargs, args)); 503 PUSH (pushed < nargs
504 ? Flist (nargs - pushed, args)
505 : Qnil);
504 pushed = nargs; 506 pushed = nargs;
505 at = Qnil; 507 at = Qnil;
506 break; 508 break;