summaryrefslogtreecommitdiff
path: root/src/unexmips.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-02-17 03:32:02 +0000
committerRichard M. Stallman <rms@gnu.org>1994-02-17 03:32:02 +0000
commit5e010bbbc5a352a4ac38370b87aad71052ef1338 (patch)
tree72a381afb9c76793b29b4aa40d8801148c701bd8 /src/unexmips.c
parente514e4564bc5ed2c83765471c1237cffe5f292fe (diff)
downloademacs-5e010bbbc5a352a4ac38370b87aad71052ef1338.tar.gz
(unexec): Add cast to result of `sbrk'.
Diffstat (limited to 'src/unexmips.c')
-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)
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)