mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-02 05:54:29 +03:00
Fix an integer size mismatch problem in test_bestindex.c
FossilOrigin-Name: 2e35eb6b7464455467c868adfbcaad4da16d3207
This commit is contained in:
@@ -454,7 +454,9 @@ static int tclBestIndex(sqlite3_vtab *tab, sqlite3_index_info *pIdxInfo){
|
||||
pIdxInfo->needToFreeIdxStr = 1;
|
||||
}else
|
||||
if( sqlite3_stricmp("rows", zCmd)==0 ){
|
||||
rc = Tcl_GetWideIntFromObj(interp, p, &pIdxInfo->estimatedRows);
|
||||
Tcl_WideInt x = 0;
|
||||
rc = Tcl_GetWideIntFromObj(interp, p, &x);
|
||||
pIdxInfo->estimatedRows = (tRowcnt)x;
|
||||
}else
|
||||
if( sqlite3_stricmp("use", zCmd)==0
|
||||
|| sqlite3_stricmp("omit", zCmd)==0
|
||||
|
||||
Reference in New Issue
Block a user