changeset 5969:999daf5b65b6

(unexec): Add cast to result of `sbrk'.
author Richard M. Stallman <rms@gnu.org>
date Thu, 17 Feb 1994 03:32:02 +0000
parents 2c31582df670
children d6a5848451f3
files src/unexmips.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/unexmips.c	Thu Feb 17 03:21:36 1994 +0000
+++ b/src/unexmips.c	Thu Feb 17 03:32:02 1994 +0000
@@ -173,7 +173,8 @@
   text_section->s_scnptr = 0;
 
   pagesize = getpagesize ();
-  brk = (sbrk (0) + pagesize - 1) & (-pagesize);
+  /* Casting to int avoids compiler error on NEWS-OS 5.0.2.  */
+  brk = (((int) (sbrk (0))) + pagesize - 1) & (-pagesize);
   hdr.aout.dsize = brk - DATA_START;
   hdr.aout.bsize = 0;
   if (entry_address == 0)