mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* range.c (step_i): rb_funcall receives VALUE as an argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ada4996ca8
commit
9d6e9694ee
2 changed files with 5 additions and 2 deletions
|
|
@ -1,3 +1,7 @@
|
|||
Tue Jan 29 22:40:12 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* range.c (step_i): rb_funcall receives VALUE as an argument.
|
||||
|
||||
Tue Jan 29 11:53:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* configure.in: rm largefile.h.
|
||||
|
|
|
|||
3
range.c
3
range.c
|
|
@ -264,8 +264,7 @@ step_i(i, arg)
|
|||
iter[0] -= INT2FIX(1) & ~FIXNUM_FLAG;
|
||||
}
|
||||
else {
|
||||
VALUE one = INT2FIX(1);
|
||||
iter[0] = rb_funcall(iter[0], '-', 1, &one);
|
||||
iter[0] = rb_funcall(iter[0], '-', 1, INT2FIX(1));
|
||||
}
|
||||
if (iter[0] == INT2FIX(0)) {
|
||||
rb_yield(i);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue