summaryrefslogtreecommitdiffstats
path: root/enum.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-30 21:47:14 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-30 21:47:14 +0000
commit64dcf28da8c42af28d173e793b3bc87f2b433901 (patch)
treea8a83548056befcef922361d19a42ebd1c4354c9 /enum.c
parent1719dd8b379fa412cf9f5ff66babb7eaceab9b54 (diff)
downloadruby-64dcf28da8c42af28d173e793b3bc87f2b433901.tar.gz
ruby-64dcf28da8c42af28d173e793b3bc87f2b433901.tar.xz
ruby-64dcf28da8c42af28d173e793b3bc87f2b433901.zip
* enum.c (enum_grep): gets rid of type-punning calls.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/enum.c b/enum.c
index e63d04af4..8205492e7 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))) {
OSZAR »