1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-12-24 14:17:58 +03:00

Fix various harmless compiler warnings seen with MSVC.

FossilOrigin-Name: 1c0fe5b5763fe5cbace9773dcdab742e126d0bd035ab13d61f9d134afa0afc0c
This commit is contained in:
mistachkin
2019-03-20 05:45:03 +00:00
parent d0f820a7e6
commit 065f3bf4f2
20 changed files with 61 additions and 57 deletions

View File

@@ -531,7 +531,7 @@ static int decodeDatabase(
fprintf(stderr, "Out of memory!\n");
exit(1);
}
memset(a, 0, nAlloc);
memset(a, 0, (size_t)nAlloc);
for(i=k=0; i<n; i++){
unsigned char c = (unsigned char)zIn[i];
if( isxdigit(c) ){
@@ -568,7 +568,7 @@ static int decodeDatabase(
exit(1);
}
assert( newSize > nAlloc );
memset(a+nAlloc, 0, newSize - nAlloc);
memset(a+nAlloc, 0, (size_t)(newSize - nAlloc));
nAlloc = newSize;
}
if( j>=(unsigned)mx ){