Fixed wrong condition for copying arguments on stack; fix #4926

This bug was introduced in 694089f to address #4832
This commit is contained in:
Yukihiro "Matz" Matsumoto
2020-01-10 17:58:15 +09:00
parent fc8fb41451
commit 70e5746896
+1 -1
View File
@@ -913,7 +913,7 @@ mrb_get_args(mrb_state *mrb, const char *format, ...)
{
mrb_value **var;
mrb_int *pl;
mrb_bool nocopy = altmode || argv_on_stack ? TRUE : FALSE;
mrb_bool nocopy = altmode || argv_on_stack ? FALSE : TRUE;
var = va_arg(ap, mrb_value**);
pl = va_arg(ap, mrb_int*);