aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2025-01-31 20:18:34 +0000
committerdrh <>2025-01-31 20:18:34 +0000
commit276d213b2aff1132a3fec04ae96b2273b70235de (patch)
tree0acbbb665d08050e9ac039fb16c0310e66701f09 /src
parent45b2669ad363ad3eb0e3e75de1b18d9e5593f837 (diff)
downloadsqlite-276d213b2aff1132a3fec04ae96b2273b70235de.tar.gz
sqlite-276d213b2aff1132a3fec04ae96b2273b70235de.zip
Tweaks to [4b4f33d791fe4318] to make it easier to test.
FossilOrigin-Name: 2567298f4b0fdfeb42aa6bba7e0bec3bc8d0b89bf644a79b41893dd6a6c5774c
Diffstat (limited to 'src')
-rw-r--r--src/whereexpr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/whereexpr.c b/src/whereexpr.c
index 0a963f4f9..2c4d0fef0 100644
--- a/src/whereexpr.c
+++ b/src/whereexpr.c
@@ -232,7 +232,7 @@ static int isLikeOrGlob(
cnt++;
}else if( c>=0x80 ){
const u8 *z2 = z+cnt-1;
- if( sqlite3Utf8Read(&z2)==0xfffd || c==0xFF /* bad utf-8 */
+ if( c==0xff || sqlite3Utf8Read(&z2)==0xfffd /* bad utf-8 */
|| ENC(db)==SQLITE_UTF16LE
){
cnt--;
@@ -1400,7 +1400,7 @@ static void exprAnalyze(
}
/* Increment the value of the last utf8 character in the prefix. */
- while( *pC==0xBF && pC>(u8*)pStr2->u.zToken ){
+ while( *pC==0xBF && ALWAYS(pC>(u8*)pStr2->u.zToken) ){
*pC = 0x80;
pC--;
}