From 4223f00713bec8721c031e50bf8a6d23e806f3e9 Mon Sep 17 00:00:00 2001 From: ko1 Date: Fri, 21 Jun 2013 19:52:40 +0000 Subject: * include/ruby/ruby.h (OBJ_WRITE): cast to (VALUE *) for second parameter `slot'. You don't need to write a cast (VALUE *) any more. * class.c, compile.c, hash.c, iseq.c, proc.c, re.c, variable.c, vm.c, vm_method.c: remove cast expressions for OBJ_WRITE(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- variable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'variable.c') diff --git a/variable.c b/variable.c index 0dad3663a4..96289a6d8f 100644 --- a/variable.c +++ b/variable.c @@ -2184,8 +2184,8 @@ rb_const_set(VALUE klass, ID id, VALUE val) ce->flag = visibility; ce->line = rb_sourceline(); st_insert(RCLASS_CONST_TBL(klass), (st_data_t)id, (st_data_t)ce); - OBJ_WRITE(klass, (VALUE *)&ce->value, val); - OBJ_WRITE(klass, (VALUE *)&ce->file, rb_sourcefilename()); + OBJ_WRITE(klass, &ce->value, val); + OBJ_WRITE(klass, &ce->file, rb_sourcefilename()); } void -- cgit v1.2.3