diff options
author | mistachkin <mistachkin@noemail.net> | 2019-03-20 05:45:03 +0000 |
---|---|---|
committer | mistachkin <mistachkin@noemail.net> | 2019-03-20 05:45:03 +0000 |
commit | 065f3bf4f2b3dbef086a32a520e4f15e47c164e4 (patch) | |
tree | 53eb717905792bf8900fea0671616fbc9ace3803 /ext/misc/unionvtab.c | |
parent | d0f820a7e61a22197d9fed275973c3e425aa7927 (diff) | |
download | sqlite-065f3bf4f2b3dbef086a32a520e4f15e47c164e4.tar.gz sqlite-065f3bf4f2b3dbef086a32a520e4f15e47c164e4.zip |
Fix various harmless compiler warnings seen with MSVC.
FossilOrigin-Name: 1c0fe5b5763fe5cbace9773dcdab742e126d0bd035ab13d61f9d134afa0afc0c
Diffstat (limited to 'ext/misc/unionvtab.c')
-rw-r--r-- | ext/misc/unionvtab.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/misc/unionvtab.c b/ext/misc/unionvtab.c index 736602316..6ac7ca6e9 100644 --- a/ext/misc/unionvtab.c +++ b/ext/misc/unionvtab.c @@ -256,7 +256,7 @@ static void *unionMalloc(int *pRc, sqlite3_int64 nByte){ if( *pRc==SQLITE_OK ){ pRet = sqlite3_malloc64(nByte); if( pRet ){ - memset(pRet, 0, nByte); + memset(pRet, 0, (size_t)nByte); }else{ *pRc = SQLITE_NOMEM; } @@ -279,7 +279,7 @@ static char *unionStrdup(int *pRc, const char *zIn){ sqlite3_int64 nByte = strlen(zIn) + 1; zRet = unionMalloc(pRc, nByte); if( zRet ){ - memcpy(zRet, zIn, nByte); + memcpy(zRet, zIn, (size_t)nByte); } } return zRet; |