diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-08-18 12:46:43 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-08-18 03:55:05 +0000 |
commit | 412defc7ad75b755b4f001bb469691983203213f (patch) | |
tree | e396da4453c61927abb833fe7d6449e5a13c7d1a /ext | |
parent | 818ba30ee9e188c59385a56bc7560f43e90bce94 (diff) |
[ruby/io-console] Get rid of address of an rvalue on TruffleRuby
https://github.com/ruby/io-console/commit/653c1cd33f
Diffstat (limited to 'ext')
-rw-r--r-- | ext/io/console/console.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/io/console/console.c b/ext/io/console/console.c index b24ac74f27..e852d68eed 100644 --- a/ext/io/console/console.c +++ b/ext/io/console/console.c @@ -1564,7 +1564,8 @@ static VALUE str_chomp(VALUE str) { if (!NIL_P(str)) { - rb_funcallv(str, id_chomp_bang, 1, &rb_default_rs); + const VALUE rs = rb_default_rs; /* rvalue in TruffleRuby */ + rb_funcallv(str, id_chomp_bang, 1, &rs); } return str; } |