mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Prefer the dedecated conversion function
This commit is contained in:
parent
54c91042ed
commit
32a0d9dd4b
1 changed files with 1 additions and 1 deletions
2
enum.c
2
enum.c
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue