aboutsummaryrefslogtreecommitdiff
path: root/src/test_osinst.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2012-04-19 18:04:28 +0000
committerdrh <drh@noemail.net>2012-04-19 18:04:28 +0000
commit83cc139231e651c3aba29f3b6620e26e7bae45c3 (patch)
tree72cd49a919eafd795c32e81e75b8d42742a99ff4 /src/test_osinst.c
parent7ed243b71abf1f989e9c6ba2904b6f84a8cecaa7 (diff)
downloadsqlite-83cc139231e651c3aba29f3b6620e26e7bae45c3.tar.gz
sqlite-83cc139231e651c3aba29f3b6620e26e7bae45c3.zip
Fix harmless compiler warnings on x64 MSVC, mostly in test code, but also in
tclsqlite.c and in the FTS4 module. FossilOrigin-Name: 3281972eaa46cb57fd9f0387063f47430dc0a3b4
Diffstat (limited to 'src/test_osinst.c')
-rw-r--r--src/test_osinst.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test_osinst.c b/src/test_osinst.c
index 35e168c41..531433313 100644
--- a/src/test_osinst.c
+++ b/src/test_osinst.c
@@ -671,7 +671,7 @@ static void vfslog_call(
static void vfslog_string(sqlite3_vfs *pVfs, const char *zStr){
VfslogVfs *p = (VfslogVfs *)pVfs;
unsigned char *zRec;
- int nStr = zStr ? strlen(zStr) : 0;
+ int nStr = zStr ? (int)strlen(zStr) : 0;
if( (4+nStr+p->nBuf)>sizeof(p->aBuf) ){
vfslog_flush(p);
}
@@ -720,7 +720,7 @@ int sqlite3_vfslog_new(
return SQLITE_ERROR;
}
- nVfs = strlen(zVfs);
+ nVfs = (int)strlen(zVfs);
nByte = sizeof(VfslogVfs) + pParent->szOsFile + nVfs+1+pParent->mxPathname+1;
p = (VfslogVfs *)sqlite3_malloc(nByte);
memset(p, 0, nByte);