1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-04 11:00:45 -08:00

(unexec): Add cast to result of `sbrk'.

This commit is contained in:
Richard M. Stallman 1994-02-17 03:32:02 +00:00
parent c7040669fa
commit 817adff7a0

View file

@ -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)