--- ray/src/common/malloc.c 1992/02/07 15:10:32 2.3 +++ ray/src/common/malloc.c 1992/02/08 13:16:01 2.4 @@ -239,11 +239,8 @@ register unsigned n; #ifdef MSTATS b_nsbrked += nrem; #endif - thisamnt = BYTES_WORD - ((unsigned)bpos&(BYTES_WORD-1)); - if (thisamnt < BYTES_WORD) { /* align pointer */ - bpos += thisamnt; - nrem -= thisamnt; - } + bpos += nrem & (BYTES_WORD-1); /* align pointer */ + nrem &= ~(BYTES_WORD-1); } n = (n+(BYTES_WORD-1))&~(BYTES_WORD-1); /* word align rqst. */