summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-21 19:52:40 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-21 19:52:40 +0000
commit4223f00713bec8721c031e50bf8a6d23e806f3e9 (patch)
tree0277c8c7767b4200993d96f4281dc63504464d9e /variable.c
parent671c196384908064703362857b2bf5f7f1b6bf39 (diff)
* 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
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c4
1 files changed, 2 insertions, 2 deletions
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