diff options
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); |