mrb_get_args should consume argument even when type specifier with bang get nil; fix #3002

This commit is contained in:
Yukihiro "Matz" Matsumoto
2015-10-28 09:36:48 +09:00
parent 614927447a
commit 8bad1954a4
+3 -3
View File
@@ -622,7 +622,7 @@ mrb_get_args(mrb_state *mrb, const char *format, ...)
format++;
if (i < argc && mrb_nil_p(*sp)) {
*ps = NULL;
i++;
i++; sp++;
break;
}
}
@@ -647,7 +647,7 @@ mrb_get_args(mrb_state *mrb, const char *format, ...)
if (i < argc && mrb_nil_p(*sp)) {
*pb = 0;
*pl = 0;
i++;
i++; sp++;
break;
}
}
@@ -740,7 +740,7 @@ mrb_get_args(mrb_state *mrb, const char *format, ...)
format++;
if (i < argc && mrb_nil_p(*sp)) {
*datap = 0;
i++;
i++; sp++;
break;
}
}