mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02: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
|
static VALUE
|
||||||
r_entry0(VALUE v, st_index_t num, struct load_arg *arg)
|
r_entry0(VALUE v, st_index_t num, struct load_arg *arg)
|
||||||
{
|
{
|
||||||
st_data_t real_obj = (VALUE)Qundef;
|
st_data_t real_obj = (st_data_t)v;
|
||||||
if (arg->compat_tbl && st_lookup(arg->compat_tbl, v, &real_obj)) {
|
if (arg->compat_tbl) {
|
||||||
st_insert(arg->data, num, (st_data_t)real_obj);
|
/* real_obj is kept if not found */
|
||||||
}
|
st_lookup(arg->compat_tbl, v, &real_obj);
|
||||||
else {
|
|
||||||
st_insert(arg->data, num, (st_data_t)v);
|
|
||||||
}
|
}
|
||||||
|
st_insert(arg->data, num, real_obj);
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue