(__builtin_new): Cast the result of malloc.
From-SVN: r1935
This commit is contained in:
parent
72c8bb7f80
commit
ecbe06a11f
@ -1186,7 +1186,7 @@ __builtin_new (sz)
|
||||
{
|
||||
void *p;
|
||||
|
||||
p = malloc (sz);
|
||||
p = (void *) malloc (sz);
|
||||
if (p == 0)
|
||||
(*__new_handler) ();
|
||||
return p;
|
||||
|
Loading…
Reference in New Issue
Block a user