Skip to content

Commit e0e6da7

Browse files
committed
Fix rb_str_conv_enc_opts when --enable-frozen-string-literal Ruby option is specified
1 parent b79a5f1 commit e0e6da7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/truffle/truffle/cext.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ def rb_str_conv_enc_opts(str, from, to, ecflags, ecopts)
881881
end
882882

883883
ec = Encoding::Converter.new(from, to, ecopts || ecflags)
884-
dest = ''
884+
dest = +''
885885
# This C API will (unlike primitive convert) not alter the source
886886
# string, so we need to duplicate it.
887887
status = ec.primitive_convert str.dup, dest, nil, nil

0 commit comments

Comments
 (0)