Skip to content

Commit 082038f

Browse files
committed
Windows: silence compiler warnings
1 parent 1f265c5 commit 082038f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/util/wcwidth.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,13 @@ int mk_wcwidth(wchar_t ucs)
199199
(ucs >= 0xfe30 && ucs <= 0xfe6f) || /* CJK Compatibility Forms */
200200
(ucs >= 0xff00 && ucs <= 0xff60) || /* Fullwidth Forms */
201201
(ucs >= 0xffe0 && ucs <= 0xffe6) ||
202+
203+
#ifndef _WIN32 // sizeof(wchar_t) == 2
202204
(ucs >= 0x20000 && ucs <= 0x2fffd) ||
203-
(ucs >= 0x30000 && ucs <= 0x3fffd)));
205+
(ucs >= 0x30000 && ucs <= 0x3fffd) ||
206+
#endif
207+
0
208+
));
204209
}
205210

206211

0 commit comments

Comments
 (0)