diff options
author | drh <> | 2024-03-06 12:28:55 +0000 |
---|---|---|
committer | drh <> | 2024-03-06 12:28:55 +0000 |
commit | a64342ee9cca331cddda4c2c241d593c7516c999 (patch) | |
tree | 81513cfdc7b8e7ddc61f0f941f1bf6cc401e4319 /ext/rtree/rtree.c | |
parent | 53ca213e7345167e23e79740476ec5b65fc0adb2 (diff) | |
download | sqlite-a64342ee9cca331cddda4c2c241d593c7516c999.tar.gz sqlite-a64342ee9cca331cddda4c2c241d593c7516c999.zip |
Correction to the previous check-in.
FossilOrigin-Name: 483fa2969e1e10cd8e8d2f9e3027871c65b1360b6c23897efe3ce63a3a55ae13
Diffstat (limited to 'ext/rtree/rtree.c')
-rw-r--r-- | ext/rtree/rtree.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/rtree/rtree.c b/ext/rtree/rtree.c index f2585bc25..a24304a8a 100644 --- a/ext/rtree/rtree.c +++ b/ext/rtree/rtree.c @@ -1870,7 +1870,9 @@ static int rtreeFilter( i64 iNode = 0; int eType = sqlite3_value_numeric_type(argv[0]); if( eType==SQLITE_INTEGER - || (eType==SQLITE_FLOAT && (i64)(sqlite3_value_double(argv[0]))==iRowid) + || (eType==SQLITE_FLOAT + && (i64)(sqlite3_value_double(argv[0]))==iRowid + && (double)iRowid==sqlite3_value_double(argv[0])) ){ rc = findLeafNode(pRtree, iRowid, &pLeaf, &iNode); }else{ |