1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* class.c (clone_method): add cast to remove warning from

rb_gc_write_barrier().

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2009-05-19 05:00:19 +00:00
parent 7d1f48b5c3
commit 4d4bd7ab95
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Tue May 19 13:59:35 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
* class.c (clone_method): add cast to remove warning from
rb_gc_write_barrier().
Tue May 19 13:54:15 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
* struct.c (struct_ivar_get): new function to avoid repeated

View file

@ -93,7 +93,7 @@ clone_method(ID mid, NODE *body, struct clone_method_data *data)
0,
NEW_NODE_LONGLIFE(NODE_METHOD,
rb_gc_write_barrier(data->klass), /* TODO */
rb_gc_write_barrier(fbody),
rb_gc_write_barrier((VALUE)fbody),
body->nd_body->nd_noex), 0));
}
return ST_CONTINUE;