From ceedd05ef0de3af9cdd1172b9c8bb8946f678084 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Wed, 27 Nov 2013 15:55:54 +0900 Subject: [PATCH] [bugfix] pic_apply_argv concatenated args in reverse order --- src/vm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vm.c b/src/vm.c index 564c44b2..e2ce0633 100644 --- a/src/vm.c +++ b/src/vm.c @@ -277,6 +277,7 @@ pic_apply_argv(pic_state *pic, struct pic_proc *proc, size_t argc, ...) while (argc--) { v = pic_cons(pic, va_arg(ap, pic_value), v); } + v = pic_reverse(pic, v); va_end(ap); return pic_apply(pic, proc, v);