8000 Cleanup type conversions · github/ruby@4c75f86 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4c75f86

Browse files
committed
Cleanup type conversions
1 parent e5d63cb commit 4c75f86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

enc/trans/single_byte.trans

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ extern int rb_encoding_compat;
9191
TRANS_INIT(single_byte)
9292
{
9393
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;
94+
rb_from_ASCII_8BIT.conv_tree_start = from_UTF_8_COMPAT_to_ASCII_8BIT;
95+
rb_to_ASCII_8BIT.conv_tree_start = from_UTF_8_COMPAT_to_ASCII_8BIT;
9696
}
9797
<%= transcode_register_code %>
9898
}

0 commit comments

Comments
 (0)
0