aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2023-02-19 19:16:51 +0000
committerdrh <>2023-02-19 19:16:51 +0000
commite17cac189fb40f4b1ccca04e54bf8163de555ae3 (patch)
tree8327dd1fa543f7233bb40c61b9453fe2954fa33c /src
parent1603f7edee60b23d91dcce61ff5bbf86b596bc85 (diff)
downloadsqlite-e17cac189fb40f4b1ccca04e54bf8163de555ae3.tar.gz
sqlite-e17cac189fb40f4b1ccca04e54bf8163de555ae3.zip
Fix a harmless compiler warning.
FossilOrigin-Name: b2534d8de5051a3516f4b9ee5a4b99e1dcf455e9af88c60815d2c2a479fc8566
Diffstat (limited to 'src')
-rw-r--r--src/where.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/where.c b/src/where.c
index 67ce10eec..08dd21824 100644
--- a/src/where.c
+++ b/src/where.c
@@ -2123,7 +2123,7 @@ static int whereInScanEst(
}
if( rc==SQLITE_OK ){
- if( nRowEst > nRow0 ) nRowEst = nRow0;
+ if( nRowEst > (tRowcnt)nRow0 ) nRowEst = nRow0;
*pnRow = nRowEst;
WHERETRACE(0x20,("IN row estimate: est=%d\n", nRowEst));
}