Skip to content

Commit

Permalink
Get rid of address of an rvalue on TruffleRuby
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Aug 18, 2023
1 parent 5f71354 commit 653c1cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ext/io/console/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 653c1cd

Please sign in to comment.