diff options
Diffstat (limited to 'enc/trans/iso2022.trans')
-rw-r--r-- | enc/trans/iso2022.trans | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/enc/trans/iso2022.trans b/enc/trans/iso2022.trans index 4340fa9b27..8a94d70040 100644 --- a/enc/trans/iso2022.trans +++ b/enc/trans/iso2022.trans @@ -33,7 +33,7 @@ fun_si_iso2022jp_to_eucjp(rb_transcoding* t, const unsigned char* s, size_t l) if (t->stateful[0] == 0) return (VALUE)NOMAP; else if (0x21 <= s[0] && s[0] <= 0x7e) - return (VALUE)&iso2022jp_to_eucjp_jisx0208_rest; + return (VALUE)iso2022jp_to_eucjp_jisx0208_rest; else return (VALUE)INVALID; } @@ -69,7 +69,7 @@ fun_so_iso2022jp_to_eucjp(rb_transcoding* t, const unsigned char* s, size_t l, u static const rb_transcoder rb_ISO_2022_JP_to_EUC_JP = { - "ISO-2022-JP", "EUC-JP", &iso2022jp_to_eucjp, + "ISO-2022-JP", "EUC-JP", iso2022jp_to_eucjp, 1, /* input_unit_length */ 3, /* max_input */ 3, /* max_output */ @@ -141,7 +141,7 @@ finish_eucjp_to_iso2022jp(rb_transcoding *t, unsigned char *o) static const rb_transcoder rb_EUC_JP_to_ISO_2022_JP = { - "EUC-JP", "ISO-2022-JP", &eucjp_to_iso2022jp, + "EUC-JP", "ISO-2022-JP", eucjp_to_iso2022jp, 1, /* input_unit_length */ 3, /* max_input */ 5, /* max_output */ |