summaryrefslogtreecommitdiff
path: root/ext/enumerator/enumerator.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-15 00:32:44 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-15 00:32:44 +0000
commit888d06be019e63f6243e5d86c4ead9bb116acc30 (patch)
tree562256c2dbd50ef2aad7e127d5c60808243f5a6c /ext/enumerator/enumerator.c
parentc76c3349e4d5cfc3d1452d32491647294c102a8b (diff)
* ext/enumerator/enumerator.c (enumerator_each): avoid VC++ warning.
* ext/syck/syck.h: include stdio.h for definition of FILE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/enumerator/enumerator.c')
-rw-r--r--ext/enumerator/enumerator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/enumerator/enumerator.c b/ext/enumerator/enumerator.c
index 65a1ea3fa2c..a4a0222fb6f 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;
}