From: Richard Stallman Date: Sun, 23 Aug 1992 07:20:15 +0000 (+0000) Subject: (__builtin_new): Cast the result of malloc. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ecbe06a11fd07bf5ee9168e9537db236b00306ea;p=gcc.git (__builtin_new): Cast the result of malloc. From-SVN: r1935 --- diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index 12756c0b090..432cf93bd90 100644 --- a/gcc/libgcc2.c +++ b/gcc/libgcc2.c @@ -1186,7 +1186,7 @@ __builtin_new (sz) { void *p; - p = malloc (sz); + p = (void *) malloc (sz); if (p == 0) (*__new_handler) (); return p;