# HG changeset patch # User Richard M. Stallman # Date 761455922 0 # Node ID 999daf5b65b6dcd3f31b41171cd886941824789d # Parent 2c31582df6705a9ccec3dccdf1ee27f3f5d126f9 (unexec): Add cast to result of `sbrk'. diff -r 2c31582df670 -r 999daf5b65b6 src/unexmips.c --- 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)