aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2020-07-13 15:35:08 +0000
committerdrh <drh@noemail.net>2020-07-13 15:35:08 +0000
commit5b107654e965973e68c88f90a09a3cc53bac9d8b (patch)
tree3b54268e238e06f6041f457a1c3a0d8cfe299326 /src/expr.c
parent27da907f8eea868f6eae12f39b7d489bd1c11866 (diff)
downloadsqlite-5b107654e965973e68c88f90a09a3cc53bac9d8b.tar.gz
sqlite-5b107654e965973e68c88f90a09a3cc53bac9d8b.zip
Readd the ALWAYS() macro that was removed by [f7a74f89dbd58b47] as the
condition is no longer reachable due to the previous check-in. FossilOrigin-Name: 9cb03beae42d814a1b1b69f72865fde502d3f443313ec29edd010d1de40225eb
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr.c b/src/expr.c
index d56963736..abc4b12cf 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -198,7 +198,7 @@ CollSeq *sqlite3ExprCollSeq(Parse *pParse, const Expr *pExpr){
&& ALWAYS(!ExprHasProperty(p, EP_xIsSelect))
){
int i;
- for(i=0; i<p->x.pList->nExpr; i++){
+ for(i=0; ALWAYS(i<p->x.pList->nExpr); i++){
if( ExprHasProperty(p->x.pList->a[i].pExpr, EP_Collate) ){
pNext = p->x.pList->a[i].pExpr;
break;