1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Fix a compiler warning in the dbserialize method of the TCL interface.

FossilOrigin-Name: ba71d030fef4cd4251dc882acc6897dbf9aaba498652900c491b082add87404f
This commit is contained in:
drh
2021-11-23 12:59:25 +00:00
parent 619a5f5572
commit 7907d372bc
3 changed files with 11 additions and 9 deletions

View File

@@ -2647,8 +2647,10 @@ static int SQLITE_TCLAPI DbObjCmd(
for(i=2; i<objc-1; i++){
const char *z = Tcl_GetString(objv[i]);
if( strcmp(z,"-maxsize")==0 && i<objc-2 ){
rc = Tcl_GetWideIntFromObj(interp, objv[++i], &mxSize);
Tcl_WideInt x;
rc = Tcl_GetWideIntFromObj(interp, objv[++i], &x);
if( rc ) goto deserialize_error;
mxSize = x;
continue;
}
if( strcmp(z,"-readonly")==0 && i<objc-2 ){