diff options
author | drh <> | 2021-11-23 12:59:25 +0000 |
---|---|---|
committer | drh <> | 2021-11-23 12:59:25 +0000 |
commit | 7907d372bc7ee866215ef423ab90cf636c3d1214 (patch) | |
tree | f2bd509e3cd52cbaf520171043b13ca75b1437d5 /src/tclsqlite.c | |
parent | 619a5f55723fdead751a6eca33a4e052629bf61a (diff) | |
download | sqlite-7907d372bc7ee866215ef423ab90cf636c3d1214.tar.gz sqlite-7907d372bc7ee866215ef423ab90cf636c3d1214.zip |
Fix a compiler warning in the dbserialize method of the TCL interface.
FossilOrigin-Name: ba71d030fef4cd4251dc882acc6897dbf9aaba498652900c491b082add87404f
Diffstat (limited to 'src/tclsqlite.c')
-rw-r--r-- | src/tclsqlite.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tclsqlite.c b/src/tclsqlite.c index 193494484..d379f8d5a 100644 --- a/src/tclsqlite.c +++ b/src/tclsqlite.c @@ -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 ){ |