summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-30 14:41:42 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-30 14:41:42 +0000
commita7f5badaf1e7366d6f3de95d2b6d2db1cf0e8b03 (patch)
tree84e4600547903e2b66a0f98b21bfdf4c7ab2101b
parentb228a084aa200c82deaf02ee3cfa91943171f166 (diff)
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
-rw-r--r--enumerator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/enumerator.c b/enumerator.c
index 6f50ce97a2..271c256b9c 100644
--- a/enumerator.c
+++ b/enumerator.c
@@ -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) {