1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-10-27 08:52:26 +03:00

Typecast to silence (incorrect) compiler warning. (CVS 3054)

FossilOrigin-Name: 3a04fc45ccc31f2009be812a9c9057844cf4ae3b
This commit is contained in:
drh
2006-02-01 14:39:53 +00:00
parent 0e819f9032
commit 144f20cbc8
3 changed files with 8 additions and 8 deletions

View File

@@ -155,7 +155,7 @@ void *sqlite3GenericMalloc(int n){
void *sqlite3GenericRealloc(void *p, int n){
char *p2 = ((char *)p - 8);
assert(n>0);
p2 = realloc(p2, n+8);
p2 = (char*)realloc(p2, n+8);
if( p2 ){
*(int *)p2 = n;
p2 += 8;