mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #4855 from dearblue/kwargs-uninit
Fix keyword arguments not be obtained with `mrb_get_args()`; Fix #4754
This commit is contained in:
+3
-3
@@ -620,11 +620,11 @@ mrb_get_args(mrb_state *mrb, const char *format, ...)
|
||||
goto check_exit;
|
||||
case '!':
|
||||
break;
|
||||
case '&': case '?':
|
||||
if (opt) opt_skip = FALSE;
|
||||
break;
|
||||
case ':':
|
||||
reqkarg = TRUE;
|
||||
/* fall through */
|
||||
case '&': case '?':
|
||||
if (opt) opt_skip = FALSE;
|
||||
break;
|
||||
default:
|
||||
if (!opt) needargc ++;
|
||||
|
||||
Reference in New Issue
Block a user