# | Line 138 | Line 138 | newobject() /* get a new object */ | |
---|---|---|
138 | { | |
139 | register int i; | |
140 | ||
141 | < | if ((nobjects & 077) == 0) { /* new block */ |
141 | > | if ((nobjects & (OBJBLKSIZ-1)) == 0) { /* new block */ |
142 | errno = 0; | |
143 | < | i = nobjects >> 6; |
143 | > | i = nobjects >> OBJBLKSHFT; |
144 | if (i >= MAXOBJBLK) | |
145 | return(OVOID); | |
146 | objblock[i] = (OBJREC *)bmalloc(OBJBLKSIZ*sizeof(OBJREC)); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |