summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-hash-ext
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 /mrbgems/mruby-hash-ext
parente9b57124a07a2f7f8ecee29372e932774d0520ad (diff)
downloadmruby-a18904a4c2e661b58fb76df7afa2a0eee4f30e70.tar.gz
mruby-a18904a4c2e661b58fb76df7afa2a0eee4f30e70.zip
Use "$!" specifier of `mrb_get_args`.
Diffstat (limited to 'mrbgems/mruby-hash-ext')
-rw-r--r--mrbgems/mruby-hash-ext/src/hash-ext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-hash-ext/src/hash-ext.c b/mrbgems/mruby-hash-ext/src/hash-ext.c
index 9560829b6..61abc080d 100644
--- a/mrbgems/mruby-hash-ext/src/hash-ext.c
+++ b/mrbgems/mruby-hash-ext/src/hash-ext.c
@@ -26,7 +26,7 @@ hash_values_at(mrb_state *mrb, mrb_value hash)
mrb_int argc, i;
int ai;
- mrb_get_args(mrb, "*", &argv, &argc);
+ mrb_get_args(mrb, "*!", &argv, &argc);
result = mrb_ary_new_capa(mrb, argc);
ai = mrb_gc_arena_save(mrb);
for (i = 0; i < argc; i++) {