OSDN Git Service

(__builtin_new): Cast the result of malloc.
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 23 Aug 1992 07:20:15 +0000 (07:20 +0000)
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 23 Aug 1992 07:20:15 +0000 (07:20 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1935 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/libgcc2.c

index 12756c0..432cf93 100644 (file)
@@ -1186,7 +1186,7 @@ __builtin_new (sz)
 {
   void *p;
 
-  p = malloc (sz);
+  p = (void *) malloc (sz);
   if (p == 0)
     (*__new_handler) ();
   return p;