ruby-changes:72008
From: Jeremy <ko1@a...>
Date: Mon, 30 May 2022 13:01:32 +0900 (JST)
Subject: [ruby-changes:72008] 7e3920f0d9 (master): [ruby/stringio] Update ext/stringio/stringio.c
https://git.ruby-lang.org/ruby.git/commit/?id=7e3920f0d9 From 7e3920f0d9875765fc337daf21a3b47d8c51f8cc Mon Sep 17 00:00:00 2001 From: Jeremy Evans <code@j...> Date: Sun, 29 May 2022 20:56:13 -0700 Subject: [ruby/stringio] Update ext/stringio/stringio.c https://github.com/ruby/stringio/commit/1edc88587e Co-authored-by: Nobuyoshi Nakada <nobu@r...> --- ext/stringio/stringio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c index 8cf5113ac8..3f66fb17d2 100644 --- a/ext/stringio/stringio.c +++ b/ext/stringio/stringio.c @@ -1125,9 +1125,10 @@ prepare_getline_args(struct getline_arg *arg, int argc, VALUE *argv) https://github.com/ruby/ruby/blob/trunk/ext/stringio/stringio.c#L1125 { VALUE str, lim, opts; long limit = -1; + int respect_chomp; argc = rb_scan_args(argc, argv, "02:", &str, &lim, &opts); - int respect_chomp = argc == 0 || !NIL_P(str); + respect_chomp = argc == 0 || !NIL_P(str); switch (argc) { case 0: str = rb_rs; -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/