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