diff --git a/ChangeLog b/ChangeLog index e42f7f6ff6..840777baf7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Wed Oct 15 09:30:34 2003 NAKAMURA Usaku + + * ext/enumerator/enumerator.c (enumerator_each): avoid VC++ warning. + + * ext/syck/syck.h: include stdio.h for definition of FILE. + Wed Oct 15 08:09:07 2003 why the lucky stiff * ext/syck/bytecode.c: Checkin of YAML bytecode support. diff --git a/ext/enumerator/enumerator.c b/ext/enumerator/enumerator.c index 65a1ea3fa2..a4a0222fb6 100644 --- a/ext/enumerator/enumerator.c +++ b/ext/enumerator/enumerator.c @@ -162,7 +162,7 @@ enumerator_each(obj) rb_ivar_get(obj, id_enum_obj), rb_to_id(rb_ivar_get(obj, id_enum_method)), rb_ivar_get(obj, id_enum_args)); - val = rb_iterate(enumerator_iter, obj, rb_yield, 0); + val = rb_iterate((VALUE (*)_((VALUE)))enumerator_iter, obj, rb_yield, 0); rb_gc_force_recycle(obj); return val; } diff --git a/ext/syck/syck.h b/ext/syck/syck.h index 7497576483..bd5c65858b 100644 --- a/ext/syck/syck.h +++ b/ext/syck/syck.h @@ -16,6 +16,7 @@ #define SYCK_VERSION "0.41" #define YAML_DOMAIN "yaml.org,2002" +#include #include "st.h" #if defined(__cplusplus)