Skip to content

Commit 653c1cd

Browse files
committed
Get rid of address of an rvalue on TruffleRuby
1 parent 5f71354 commit 653c1cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/io/console/console.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1564,7 +1564,8 @@ static VALUE
15641564
str_chomp(VALUE str)
15651565
{
15661566
if (!NIL_P(str)) {
1567-
rb_funcallv(str, id_chomp_bang, 1, &rb_default_rs);
1567+
const VALUE rs = rb_default_rs; /* rvalue in TruffleRuby */
1568+
rb_funcallv(str, id_chomp_bang, 1, &rs);
15681569
}
15691570
return str;
15701571
}

0 commit comments

Comments
 (0)