@@ -467,7 +467,7 @@ int mbfilter_unicode2sjis_emoji_kddi(int c, int *s1, mbfl_convert_filter *filter
467467
468468 /* If none of the KDDI national flag emoji matched, then we have no way
469469 * to convert the previous codepoint... */
470- mbfl_filt_conv_illegal_output (c1 , filter );
470+ CK ( mbfl_filt_conv_illegal_output (c1 , filter ) );
471471 }
472472
473473 if (c == '#' || (c >= '0' && c <= '9' )) {
@@ -523,7 +523,7 @@ int mbfilter_unicode2sjis_emoji_sb(int c, int *s1, mbfl_convert_filter *filter)
523523 }
524524 return 1 ;
525525 } else {
526- ( * filter -> output_function )(c1 , filter -> data );
526+ CK (( * filter -> output_function )(c1 , filter -> data ) );
527527 }
528528 } else if (filter -> status == 2 ) {
529529 int c1 = filter -> cache ;
@@ -539,7 +539,7 @@ int mbfilter_unicode2sjis_emoji_sb(int c, int *s1, mbfl_convert_filter *filter)
539539
540540 /* If none of the SoftBank national flag emoji matched, then we have no way
541541 * to convert the previous codepoint... */
542- mbfl_filt_conv_illegal_output (c1 , filter );
542+ CK ( mbfl_filt_conv_illegal_output (c1 , filter ) );
543543 }
544544
545545 if (c == '#' || (c >= '0' && c <= '9' )) {
@@ -814,9 +814,9 @@ int mbfl_filt_conv_wchar_sjis_mobile(int c, mbfl_convert_filter *filter)
814814 }
815815 }
816816
817- if ((filter -> to == & mbfl_encoding_sjis_docomo && mbfilter_unicode2sjis_emoji_docomo (c , & s1 , filter )) ||
818- (filter -> to == & mbfl_encoding_sjis_kddi && mbfilter_unicode2sjis_emoji_kddi (c , & s1 , filter )) ||
819- (filter -> to == & mbfl_encoding_sjis_sb && mbfilter_unicode2sjis_emoji_sb (c , & s1 , filter ))) {
817+ if ((filter -> to == & mbfl_encoding_sjis_docomo && mbfilter_unicode2sjis_emoji_docomo (c , & s1 , filter ) > 0 ) ||
818+ (filter -> to == & mbfl_encoding_sjis_kddi && mbfilter_unicode2sjis_emoji_kddi (c , & s1 , filter ) > 0 ) ||
819+ (filter -> to == & mbfl_encoding_sjis_sb && mbfilter_unicode2sjis_emoji_sb (c , & s1 , filter ) > 0 )) {
820820 s1 = (((s1 / 94 ) + 0x21 ) << 8 ) | ((s1 % 94 ) + 0x21 );
821821 }
822822
@@ -850,7 +850,7 @@ int mbfl_filt_conv_sjis_mobile_flush(mbfl_convert_filter *filter)
850850 } else if (filter -> status == 2 ) {
851851 /* First of a pair of Regional Indicator codepoints came at the end of a string */
852852 filter -> cache = filter -> status = 0 ;
853- mbfl_filt_conv_illegal_output (c1 , filter );
853+ CK ( mbfl_filt_conv_illegal_output (c1 , filter ) );
854854 }
855855
856856 if (filter -> flush_function ) {
0 commit comments