ruby-changes:54736
From: naruse <ko1@a...>
Date: Wed, 30 Jan 2019 23:41:51 +0900 (JST)
Subject: [ruby-changes:54736] naruse:r66953 (ruby_2_6): Ruby 2.6 is still C90
naruse 2019-01-30 23:41:42 +0900 (Wed, 30 Jan 2019) New Revision: 66953 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66953 Log: Ruby 2.6 is still C90 Modified files: branches/ruby_2_6/enumerator.c Index: ruby_2_6/enumerator.c =================================================================== --- ruby_2_6/enumerator.c (revision 66952) +++ ruby_2_6/enumerator.c (revision 66953) @@ -2832,7 +2832,7 @@ arith_seq_first(int argc, VALUE *argv, V https://github.com/ruby/ruby/blob/trunk/ruby_2_6/enumerator.c#L2832 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, V https://github.com/ruby/ruby/blob/trunk/ruby_2_6/enumerator.c#L2849 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) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/