From 045f4bb5b1767140c4f6cfe2d2002553925c4205 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 30 Oct 2024 08:28:15 +0100 Subject: Make string view lengths signed --- lib/unicode/string/u8gnext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/unicode/string/u8gnext.c') diff --git a/lib/unicode/string/u8gnext.c b/lib/unicode/string/u8gnext.c index 7c551f7..6e91cf7 100644 --- a/lib/unicode/string/u8gnext.c +++ b/lib/unicode/string/u8gnext.c @@ -35,7 +35,7 @@ u8gnext(u8view_t *g, u8view_t *sv) for (;;) { rune ch2; - if ((size_t)(p - sv->p) >= sv->len) + if (p - sv->p >= sv->len) ch2 = 0; else m = u8tor(&ch2, p); -- cgit v1.2.3