aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/unexmips.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/unexmips.c b/src/unexmips.c
index 8dffa695a5b..a88235a464e 100644
--- a/src/unexmips.c
+++ b/src/unexmips.c
@@ -173,7 +173,8 @@ unexec (new_name, a_name, data_start, bss_start, entry_address)
173 text_section->s_scnptr = 0; 173 text_section->s_scnptr = 0;
174 174
175 pagesize = getpagesize (); 175 pagesize = getpagesize ();
176 brk = (sbrk (0) + pagesize - 1) & (-pagesize); 176 /* Casting to int avoids compiler error on NEWS-OS 5.0.2. */
177 brk = (((int) (sbrk (0))) + pagesize - 1) & (-pagesize);
177 hdr.aout.dsize = brk - DATA_START; 178 hdr.aout.dsize = brk - DATA_START;
178 hdr.aout.bsize = 0; 179 hdr.aout.bsize = 0;
179 if (entry_address == 0) 180 if (entry_address == 0)