diff options
Diffstat (limited to 'lib/mbstring/u8rchr.c')
-rw-r--r-- | lib/mbstring/u8rchr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mbstring/u8rchr.c b/lib/mbstring/u8rchr.c index 47eaa4c..0ed9f9e 100644 --- a/lib/mbstring/u8rchr.c +++ b/lib/mbstring/u8rchr.c @@ -69,7 +69,7 @@ u8rchr(u8view_t sv, rune ch) char8_t buf[U8_LEN_MAX]; int n = rtou8(buf, ch, sizeof(buf)); - if (sv.len < (size_t)n) + if (sv.len < n) return nullptr; switch (n) { case 1: |