[ruby/stringio] Removed wrong UNREACHABLE
https://github.com/ruby/stringio/commit/f528538d10
This commit is contained in:
parent
574871781b
commit
a7c67fc6da
Notes:
git
2020-07-20 14:59:46 +09:00
@ -1438,7 +1438,6 @@ strio_write(VALUE self, VALUE str)
|
|||||||
VALUE converted = rb_str_conv_enc(str, enc2, enc);
|
VALUE converted = rb_str_conv_enc(str, enc2, enc);
|
||||||
if (converted == str && enc2 != ascii8bit) { /* conversion failed */
|
if (converted == str && enc2 != ascii8bit) { /* conversion failed */
|
||||||
rb_enc_check(rb_enc_from_encoding(enc), str);
|
rb_enc_check(rb_enc_from_encoding(enc), str);
|
||||||
UNREACHABLE;
|
|
||||||
}
|
}
|
||||||
str = converted;
|
str = converted;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user