From 7735e63593a4bef31c0c573e793eec5474b4bac1 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 13 Oct 2010 22:22:18 +0000 Subject: * array.c (rb_ary_and, rb_ary_or), class.c (rb_mod_init_copy), gc.c (undefine_final), time.c (time_mload): get rid of type-punning casts. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- class.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'class.c') diff --git a/class.c b/class.c index 76d16d1fb4..4610f4dfa7 100644 --- a/class.c +++ b/class.c @@ -150,16 +150,16 @@ rb_mod_init_copy(VALUE clone, VALUE orig) } RCLASS_SUPER(clone) = RCLASS_SUPER(orig); if (RCLASS_IV_TBL(orig)) { - ID id; + st_data_t id; if (RCLASS_IV_TBL(clone)) { st_free_table(RCLASS_IV_TBL(clone)); } RCLASS_IV_TBL(clone) = st_copy(RCLASS_IV_TBL(orig)); CONST_ID(id, "__classpath__"); - st_delete(RCLASS_IV_TBL(clone), (st_data_t*)&id, 0); + st_delete(RCLASS_IV_TBL(clone), &id, 0); CONST_ID(id, "__classid__"); - st_delete(RCLASS_IV_TBL(clone), (st_data_t*)&id, 0); + st_delete(RCLASS_IV_TBL(clone), &id, 0); } if (RCLASS_M_TBL(orig)) { struct clone_method_data data; -- cgit v1.2.3