Commit c999e476 authored by NAKAMURA Usaku's avatar NAKAMURA Usaku

the type of return values of tr->func_ii() and tr->func_si() is already...

the type of return values of tr->func_ii() and tr->func_si() is already mrb_value, so no need to cast.
parent d2a38520
......@@ -632,14 +632,14 @@ transcode_restartable0(mrb_state *mrb,
}
continue;
case FUNii:
next_info = (mrb_value)(*tr->func_ii)(TRANSCODING_STATE(tc), next_info);
next_info = (*tr->func_ii)(TRANSCODING_STATE(tc), next_info);
goto follow_info;
case FUNsi:
{
const unsigned char *char_start;
size_t char_len;
char_start = transcode_char_start(tc, *in_pos, inchar_start, in_p, &char_len);
next_info = (mrb_value)(*tr->func_si)(TRANSCODING_STATE(tc), char_start, (size_t)char_len);
next_info = (*tr->func_si)(TRANSCODING_STATE(tc), char_start, (size_t)char_len);
goto follow_info;
}
case FUNio:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment