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:
@@ -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 ){
|
||||
|
||||
Reference in New Issue
Block a user