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

This bug was introduced in 694089fa to address #4832
parent fc8fb414
...@@ -913,7 +913,7 @@ mrb_get_args(mrb_state *mrb, const char *format, ...) ...@@ -913,7 +913,7 @@ mrb_get_args(mrb_state *mrb, const char *format, ...)
{ {
mrb_value **var; mrb_value **var;
mrb_int *pl; 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**); var = va_arg(ap, mrb_value**);
pl = va_arg(ap, mrb_int*); pl = va_arg(ap, mrb_int*);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment