summaryrefslogtreecommitdiffhomepage
path: root/src/error.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-07-12 14:49:55 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-07-12 14:49:55 +0900
commita18904a4c2e661b58fb76df7afa2a0eee4f30e70 (patch)
treedcc885f076ae9f0a73440ef86112d0ca192f4fcb /src/error.c
parente9b57124a07a2f7f8ecee29372e932774d0520ad (diff)
downloadmruby-a18904a4c2e661b58fb76df7afa2a0eee4f30e70.tar.gz
mruby-a18904a4c2e661b58fb76df7afa2a0eee4f30e70.zip
Use "$!" specifier of `mrb_get_args`.
Diffstat (limited to 'src/error.c')
-rw-r--r--src/error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/error.c b/src/error.c
index 92f4911f6..062282719 100644
--- a/src/error.c
+++ b/src/error.c
@@ -47,7 +47,7 @@ exc_initialize(mrb_state *mrb, mrb_value exc)
mrb_int argc;
mrb_value *argv;
- if (mrb_get_args(mrb, "|o*", &mesg, &argv, &argc) >= 1) {
+ if (mrb_get_args(mrb, "|o*!", &mesg, &argv, &argc) >= 1) {
mrb_iv_set(mrb, exc, mrb_intern_lit(mrb, "mesg"), mesg);
}
return exc;