summaryrefslogtreecommitdiff
path: root/sprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sprintf.c')
-rw-r--r--sprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sprintf.c b/sprintf.c
index c3fc39591d..b41ab9cb39 100644
--- a/sprintf.c
+++ b/sprintf.c
@@ -161,7 +161,7 @@ get_hash(volatile VALUE *hash, int argc, const VALUE *argv)
if (argc != 2) {
rb_raise(rb_eArgError, "one hash required");
}
- tmp = rb_check_convert_type(argv[1], T_HASH, "Hash", "to_hash");
+ tmp = rb_check_hash_type(argv[1]);
if (NIL_P(tmp)) {
rb_raise(rb_eArgError, "one hash required");
}