diff options
| author | peter <peter@pmikkelsen.com> | 2026-10-04 18:13:16 +0000 |
|---|---|---|
| committer | peter <peter@pmikkelsen.com> | 2026-10-04 18:13:16 +0000 |
| commit | ab9f55b03c670628d87323d636f86322147e5e40 (patch) | |
| tree | b2ab72459d6df4ef048d8746b43237c1c5f8d46a /src | |
| parent | 17285405af9f0289f271ba4ca9f18c164ad2bd90 (diff) | |
The UTF-8 code had two NEVERs which didn't make sense.
FossilOrigin-Name: 1be20afeb238bc7c9ca36b903378d6236af521855cfe76fe59ee39f22a7533ff
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/string.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |