mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Removed useless casts
This commit is contained in:
parent
72757fb596
commit
5c49bb5486
1 changed files with 5 additions and 6 deletions
11
marshal.c
11
marshal.c
|
@ -1503,13 +1503,12 @@ r_string(struct load_arg *arg)
|
|||
static VALUE
|
||||
r_entry0(VALUE v, st_index_t num, struct load_arg *arg)
|
||||
{
|
||||
st_data_t real_obj = (VALUE)Qundef;
|
||||
if (arg->compat_tbl && st_lookup(arg->compat_tbl, v, &real_obj)) {
|
||||
st_insert(arg->data, num, (st_data_t)real_obj);
|
||||
}
|
||||
else {
|
||||
st_insert(arg->data, num, (st_data_t)v);
|
||||
st_data_t real_obj = (st_data_t)v;
|
||||
if (arg->compat_tbl) {
|
||||
/* real_obj is kept if not found */
|
||||
st_lookup(arg->compat_tbl, v, &real_obj);
|
||||
}
|
||||
st_insert(arg->data, num, real_obj);
|
||||
return v;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue