mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Ruby 2.6 is still C90
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@66953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b228a084aa
commit
a7f5badaf1
1 changed files with 2 additions and 2 deletions
|
|
@ -2832,7 +2832,7 @@ arith_seq_first(int argc, VALUE *argv, VALUE self)
|
|||
return b;
|
||||
}
|
||||
|
||||
// TODO: the following code should be extracted as arith_seq_take
|
||||
/* TODO: the following code should be extracted as arith_seq_take */
|
||||
|
||||
n = NUM2LONG(argv[0]);
|
||||
if (n < 0) {
|
||||
|
|
@ -2849,7 +2849,7 @@ arith_seq_first(int argc, VALUE *argv, VALUE self)
|
|||
ary = rb_ary_new_capa(n);
|
||||
while (n > 0 && FIXABLE(i)) {
|
||||
rb_ary_push(ary, LONG2FIX(i));
|
||||
i += unit; // FIXABLE + FIXABLE never overflow;
|
||||
i += unit; /* FIXABLE + FIXABLE never overflow; */
|
||||
--n;
|
||||
}
|
||||
if (n > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue