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