From d3025b14b9c13286b79f256d019a99da9425ea0e Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 15 May 2021 11:14:03 -0500 Subject: Convert utf8towc from wchar_t to unsigned (to match wctoutf8). The maximum unicode code point is 0x10ffff which is 21 bits. --- toys/posix/cut.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/posix/cut.c') diff --git a/toys/posix/cut.c b/toys/posix/cut.c index 61b2b409..6a295846 100644 --- a/toys/posix/cut.c +++ b/toys/posix/cut.c @@ -85,7 +85,7 @@ static void cut_line(char **pline, long len) count = ss-s; } else if (toys.optflags&FLAG_c) { - wchar_t wc; + unsigned wc; char *sss; // Find start -- cgit v1.2.3