summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-01-10 17:58:15 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-01-10 17:58:15 +0900
commit70e574689664c10ed2c47581999cc2ce3e3c5afb (patch)
tree0ebb3fd27764cbfa57123c80a055245222227097 /src
parentfc8fb41451b07b3fda0726ba80e88e509ad02452 (diff)
downloadmruby-70e574689664c10ed2c47581999cc2ce3e3c5afb.tar.gz
mruby-70e574689664c10ed2c47581999cc2ce3e3c5afb.zip
Fixed wrong condition for copying arguments on stack; fix #4926
This bug was introduced in 694089f to address #4832
Diffstat (limited to 'src')
-rw-r--r--src/class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class.c b/src/class.c
index a7d9ebf37..f5316e272 100644
--- a/src/class.c
+++ b/src/class.c
@@ -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*);