1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Fix compiler warnings.

FossilOrigin-Name: 3e8ac46918c68723bd199dbec8b0901457d524a9
This commit is contained in:
drh
2013-06-15 15:11:45 +00:00
parent f003076032
commit 613ba1ea9c
4 changed files with 15 additions and 20 deletions

View File

@@ -1538,8 +1538,8 @@ static void computeLimitRegisters(Parse *pParse, Select *p, int iBreak){
VdbeComment((v, "LIMIT counter"));
if( n==0 ){
sqlite3VdbeAddOp2(v, OP_Goto, 0, iBreak);
}else{
if( p->nSelectRow > n ) p->nSelectRow = n;
}else if( n>=0 && p->nSelectRow>(u64)n ){
p->nSelectRow = n;
}
}else{
sqlite3ExprCode(pParse, p->pLimit, iLimit);
@@ -1733,7 +1733,7 @@ static int multiSelect(
p->nSelectRow += pPrior->nSelectRow;
if( pPrior->pLimit
&& sqlite3ExprIsInteger(pPrior->pLimit, &nLimit)
&& p->nSelectRow > nLimit
&& nLimit>0 && p->nSelectRow > (u64)nLimit
){
p->nSelectRow = nLimit;
}