mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Remove useless casts
This commit is contained in:
parent
a4e39112a8
commit
e3cda75436
1 changed files with 2 additions and 2 deletions
4
hash.c
4
hash.c
|
@ -1692,7 +1692,7 @@ int
|
|||
rb_hash_stlike_update(VALUE hash, st_data_t key, st_update_callback_func *func, st_data_t arg)
|
||||
{
|
||||
if (RHASH_AR_TABLE_P(hash)) {
|
||||
int result = ar_update(hash, (st_data_t)key, func, arg);
|
||||
int result = ar_update(hash, key, func, arg);
|
||||
if (result == -1) {
|
||||
ar_try_convert_table(hash);
|
||||
}
|
||||
|
@ -1701,7 +1701,7 @@ rb_hash_stlike_update(VALUE hash, st_data_t key, st_update_callback_func *func,
|
|||
}
|
||||
}
|
||||
|
||||
return st_update(RHASH_ST_TABLE(hash), (st_data_t)key, func, arg);
|
||||
return st_update(RHASH_ST_TABLE(hash), key, func, arg);
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Reference in a new issue