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

Comparing ray/src/common/objset.c (file contents):
Revision 2.5 by gregl, Wed Dec 3 11:14:00 1997 UTC vs.
Revision 2.6 by gwlarson, Tue Aug 18 17:18:51 1998 UTC

# Line 228 | Line 228 | OCTREE  ot;
228  
229          if (!isfull(ot))
230                  goto noderr;
231 <        i = oseti(ot);
232 <        if ((os = ostable[i%OSTSIZ]) == NULL)
231 >        ot = oseti(ot);
232 >        if ((os = ostable[ot%OSTSIZ]) == NULL)
233                  goto noderr;
234 <        for (i /= OSTSIZ; i--; os += *os + 1)
234 >        for (i = ot/OSTSIZ; i--; os += *os + 1)
235                  if (*os <= 0)
236                          goto noderr;
237          for (i = *os; i-- >= 0; )               /* copy set here */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines