From: drh Date: Wed, 2 Mar 2011 15:44:35 +0000 (+0000) Subject: Make sure the rtreenode() testing and analysis routine in the RTREE extension X-Git-Tag: version-3.7.6~124 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=befd5f3c20826aecaa19d32bcba69de8811150aa;p=thirdparty%2Fsqlite.git Make sure the rtreenode() testing and analysis routine in the RTREE extension can handle 64-bit rowids. This fix is in response to a message on the mailing list. FossilOrigin-Name: 24602557fc3295fe2836d269175f12ec680ac011 --- diff --git a/ext/rtree/rtree.c b/ext/rtree/rtree.c index 5665e6aa8c..d47c1092ef 100644 --- a/ext/rtree/rtree.c +++ b/ext/rtree/rtree.c @@ -3133,7 +3133,7 @@ static void rtreenode(sqlite3_context *ctx, int nArg, sqlite3_value **apArg){ int jj; nodeGetCell(&tree, &node, ii, &cell); - sqlite3_snprintf(512-nCell,&zCell[nCell],"%d", cell.iRowid); + sqlite3_snprintf(512-nCell,&zCell[nCell],"%lld", cell.iRowid); nCell = strlen(zCell); for(jj=0; jj