diff --git a/ChangeLog b/ChangeLog index ff7ca9c1cf..e9bdee92ba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Sep 26 11:34:08 2008 NAKAMURA Usaku + + * variable.c (rb_define_hooked_variable): cast to get rid of compiler + warnings. + Fri Sep 26 11:05:41 2008 NAKAMURA Usaku * transcode.c, include/ruby/encoding.c (rb_transcode_convertible): diff --git a/variable.c b/variable.c index 1417de5703..a5fbf28f5f 100644 --- a/variable.c +++ b/variable.c @@ -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);