ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/readobj.c
(Generate patch)

Comparing ray/src/common/readobj.c (file contents):
Revision 2.6 by gwlarson, Mon Aug 24 16:42:46 1998 UTC vs.
Revision 2.7 by gwlarson, Thu Nov 5 16:51:26 1998 UTC

# 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));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines