diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-10-30 08:28:15 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-10-30 08:28:15 +0100 |
commit | 045f4bb5b1767140c4f6cfe2d2002553925c4205 (patch) | |
tree | f51b2034e91a3f67d2bde506cf84d13cfc496c6e /lib/unicode/string/u8gnext.c | |
parent | 5dbf53a1c512f9163744874e3d502e9f9e2808da (diff) |
Make string view lengths signed
Diffstat (limited to 'lib/unicode/string/u8gnext.c')
-rw-r--r-- | lib/unicode/string/u8gnext.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |