зеркало из https://github.com/github/ruby.git
* 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:
Родитель
e76b1a11ca
Коммит
fac096d512
|
@ -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>
|
||||
|
||||
* transcode.c, include/ruby/encoding.c (rb_transcode_convertible):
|
||||
|
|
|
@ -474,8 +474,8 @@ rb_define_hooked_variable(
|
|||
id = global_id(name);
|
||||
gvar = rb_global_entry(id)->var;
|
||||
gvar->data = (void*)var;
|
||||
gvar->getter = getter?getter:var_getter;
|
||||
gvar->setter = setter?setter:var_setter;
|
||||
gvar->getter = getter?(gvar_getter_t *)getter:var_getter;
|
||||
gvar->setter = setter?(gvar_setter_t *)setter:var_setter;
|
||||
gvar->marker = var_marker;
|
||||
|
||||
RB_GC_GUARD(tmp);
|
||||
|
|
Загрузка…
Ссылка в новой задаче