Skip to content

Commit

Permalink
Prefer the dedecated conversion function
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Jan 8, 2022
1 parent 54c9104 commit 32a0d9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enum.c
Expand Up @@ -1224,7 +1224,7 @@ enum_tally(int argc, VALUE *argv, VALUE obj)
{
VALUE hash;
if (rb_check_arity(argc, 0, 1)) {
hash = rb_convert_type(argv[0], T_HASH, "Hash", "to_hash");
hash = rb_to_hash_type(argv[0]);
rb_check_frozen(hash);
}
else {
Expand Down

0 comments on commit 32a0d9d

Please sign in to comment.