Skip to content

Commit 1662f7f

Browse files
committed
Fix legacy conversion filter for UTF-7
1 parent c8e4f31 commit 1662f7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/mbstring/libmbfl/filters/mbfilter_utf7.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ int mbfl_filt_conv_wchar_utf7(int c, mbfl_convert_filter *filter)
290290
}
291291
} else if (c >= 0 && c < MBFL_WCSPLANE_UCS2MAX) {
292292
;
293-
} else if (c >= MBFL_WCSPLANE_SUPMIN && c < MBFL_WCSPLANE_SUPMAX) {
293+
} else if (c >= MBFL_WCSPLANE_SUPMIN && c < MBFL_WCSPLANE_UTF32MAX) {
294294
CK((*filter->filter_function)(((c >> 10) - 0x40) | 0xd800, filter));
295295
CK((*filter->filter_function)((c & 0x3ff) | 0xdc00, filter));
296296
return 0;

0 commit comments

Comments
 (0)