Unverified Commit 82679939 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4855 from dearblue/kwargs-uninit

Fix keyword arguments not be obtained with `mrb_get_args()`; Fix #4754
parents ef644120 1ca4fdc4
...@@ -620,11 +620,11 @@ mrb_get_args(mrb_state *mrb, const char *format, ...) ...@@ -620,11 +620,11 @@ mrb_get_args(mrb_state *mrb, const char *format, ...)
goto check_exit; goto check_exit;
case '!': case '!':
break; break;
case '&': case '?':
if (opt) opt_skip = FALSE;
break;
case ':': case ':':
reqkarg = TRUE; reqkarg = TRUE;
/* fall through */
case '&': case '?':
if (opt) opt_skip = FALSE;
break; break;
default: default:
if (!opt) needargc ++; if (!opt) needargc ++;
......
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