summaryrefslogtreecommitdiff
path: root/encoding.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-02 06:48:51 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-02 06:48:51 +0000
commit4bef8cffa3218f9891a80bb2e7e0d25c5928dade (patch)
tree66ce94dd16e4b788845e53f05dde1d08c1fa1042 /encoding.c
parentbf0723644b95f5afc9c0fc8b7f60f4284a6fc0c4 (diff)
downloadruby-4bef8cffa3218f9891a80bb2e7e0d25c5928dade.tar.gz
encoding.c: use rb_check_arity
* encoding.c (enc_dump): use rb_check_arity to just check number of arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'encoding.c')
-rw-r--r--encoding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/encoding.c b/encoding.c
index 4d044d1cba..5b9f2a0331 100644
--- a/encoding.c
+++ b/encoding.c
@@ -1268,7 +1268,7 @@ enc_compatible_p(VALUE klass, VALUE str1, VALUE str2)
static VALUE
enc_dump(int argc, VALUE *argv, VALUE self)
{
- rb_scan_args(argc, argv, "01", 0);
+ rb_check_arity(argc, 0, 1);
return enc_name(self);
}