We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5d63cb commit 4c75f86Copy full SHA for 4c75f86
enc/trans/single_byte.trans
@@ -91,8 +91,8 @@ extern int rb_encoding_compat;
91
TRANS_INIT(single_byte)
92
{
93
if (rb_encoding_compat) {
94
- ((struct rb_transcoder *)&rb_from_ASCII_8BIT)->conv_tree_start = from_UTF_8_COMPAT_to_ASCII_8BIT;
95
- ((struct rb_transcoder *) &rb_to_ASCII_8BIT)->conv_tree_start = from_UTF_8_COMPAT_to_ASCII_8BIT;
+ rb_from_ASCII_8BIT.conv_tree_start = from_UTF_8_COMPAT_to_ASCII_8BIT;
+ rb_to_ASCII_8BIT.conv_tree_start = from_UTF_8_COMPAT_to_ASCII_8BIT;
96
}
97
<%= transcode_register_code %>
98
0 commit comments