From 01430b6e69b252670fe6e01460b5e0fe46ebf89c Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 30 Jun 2009 21:47:14 +0000 Subject: * enum.c (enum_grep): gets rid of type-punning calls. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- enum.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'enum.c') diff --git a/enum.c b/enum.c index e63d04af4f..8205492e70 100644 --- a/enum.c +++ b/enum.c @@ -31,8 +31,9 @@ enum_values_pack(int argc, VALUE *argv) #define enum_yield rb_yield_values2 static VALUE -grep_i(VALUE i, VALUE *arg, int argc, VALUE *argv) +grep_i(VALUE i, VALUE args, int argc, VALUE *argv) { + VALUE *arg = (VALUE *)args; ENUM_WANT_SVALUE(); if (RTEST(rb_funcall(arg[0], id_eqq, 1, i))) { @@ -42,8 +43,9 @@ grep_i(VALUE i, VALUE *arg, int argc, VALUE *argv) } static VALUE -grep_iter_i(VALUE i, VALUE *arg, int argc, VALUE *argv) +grep_iter_i(VALUE i, VALUE args, int argc, VALUE *argv) { + VALUE *arg = (VALUE *)args; ENUM_WANT_SVALUE(); if (RTEST(rb_funcall(arg[0], id_eqq, 1, i))) { -- cgit v1.2.3