mescc: Mes C Library: Fix brk return type compare.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 24 Feb 2019 08:11:55 +0000 (09:11 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sun, 24 Feb 2019 08:11:55 +0000 (09:11 +0100)
* lib/stdlib/malloc.c (malloc): Fix brk return type compare.

lib/stdlib/malloc.c

index d9892308ea90893e95da47ab63644f8acc917f69..940f95b59427158e04947f030c2e26b479c7c02b 100644 (file)
@@ -25,7 +25,7 @@ malloc (size_t size)
 {
   if (!__brk)
     __brk = brk (0);
-  if (brk (__brk + size) == (void*)-1)
+  if (brk (__brk + size) == -1)
     return 0;
   char *p = __brk;
   __brk += size;