Skip to content

Commit 3f1851d

Browse files
committed
Avoid compiler warnings related to mbstring flush functions
1 parent d523de6 commit 3f1851d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/mbstring/libmbfl/filters/mbfilter_cp5022x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ mbfl_filt_conv_wchar_cp50220_ctor(mbfl_convert_filter *filt)
585585
ctx->last.opaque = ctx;
586586
ctx->last.data = filt->data;
587587
filt->filter_function = vtbl_tl_jisx0201_jisx0208.filter_function;
588-
filt->filter_flush = vtbl_tl_jisx0201_jisx0208.filter_flush;
588+
filt->filter_flush = (filter_flush_t)vtbl_tl_jisx0201_jisx0208.filter_flush;
589589
filt->output_function = (output_function_t)ctx->last.filter_function;
590590
filt->flush_function = (flush_function_t)ctx->last.filter_flush;
591591
filt->data = &ctx->last;

ext/mbstring/libmbfl/mbfl/mbfl_convert.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ static void mbfl_convert_filter_common_init(mbfl_convert_filter *filter, const m
136136
filter->filter_ctor = vtbl->filter_ctor;
137137
filter->filter_dtor = vtbl->filter_dtor;
138138
filter->filter_function = vtbl->filter_function;
139-
filter->filter_flush = vtbl->filter_flush;
139+
filter->filter_flush = (filter_flush_t)vtbl->filter_flush;
140140
filter->filter_copy = vtbl->filter_copy;
141141

142142
(*filter->filter_ctor)(filter);

0 commit comments

Comments
 (0)