mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* variable.c (rb_define_hooked_variable): cast to get rid of compiler
warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e76b1a11ca
commit
fac096d512
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Fri Sep 26 11:34:08 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* variable.c (rb_define_hooked_variable): cast to get rid of compiler
|
||||||
|
warnings.
|
||||||
|
|
||||||
Fri Sep 26 11:05:41 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
Fri Sep 26 11:05:41 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* transcode.c, include/ruby/encoding.c (rb_transcode_convertible):
|
* transcode.c, include/ruby/encoding.c (rb_transcode_convertible):
|
||||||
|
|
|
@ -474,8 +474,8 @@ rb_define_hooked_variable(
|
||||||
id = global_id(name);
|
id = global_id(name);
|
||||||
gvar = rb_global_entry(id)->var;
|
gvar = rb_global_entry(id)->var;
|
||||||
gvar->data = (void*)var;
|
gvar->data = (void*)var;
|
||||||
gvar->getter = getter?getter:var_getter;
|
gvar->getter = getter?(gvar_getter_t *)getter:var_getter;
|
||||||
gvar->setter = setter?setter:var_setter;
|
gvar->setter = setter?(gvar_setter_t *)setter:var_setter;
|
||||||
gvar->marker = var_marker;
|
gvar->marker = var_marker;
|
||||||
|
|
||||||
RB_GC_GUARD(tmp);
|
RB_GC_GUARD(tmp);
|
||||||
|
|
Loading…
Reference in a new issue