From ab9f55b03c670628d87323d636f86322147e5e40 Mon Sep 17 00:00:00 2001 From: peter Date: Sun, 4 Oct 2026 18:13:16 +0000 Subject: The UTF-8 code had two NEVERs which didn't make sense. FossilOrigin-Name: 1be20afeb238bc7c9ca36b903378d6236af521855cfe76fe59ee39f22a7533ff --- src/lib/string.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib/string.c b/src/lib/string.c index 0c01fca..469ef26 100644 --- a/src/lib/string.c +++ b/src/lib/string.c @@ -66,7 +66,7 @@ invalid: charcount++; switch(seqlen){ case 0: - if(NEVER(c == 0) || NEVER(c > 0x7F)) + if(NEVER(c > 0x7F)) goto invalid; break; case 1: @@ -78,7 +78,7 @@ invalid: goto invalid; break; case 3: - if((c < 0x010000) || NEVER(c > 0x10FFFF)) + if((c < 0x010000) || (c > 0x10FFFF)) goto invalid; break; } -- cgit v1.2.3