diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-30 21:47:14 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-30 21:47:14 +0000 |
commit | 64dcf28da8c42af28d173e793b3bc87f2b433901 (patch) | |
tree | a8a83548056befcef922361d19a42ebd1c4354c9 /enum.c | |
parent | 1719dd8b379fa412cf9f5ff66babb7eaceab9b54 (diff) | |
download | ruby-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.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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))) { |