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

Comparing ray/src/hd/sm_qtree.c (file contents):
Revision 3.15 by greg, Wed Apr 23 00:52:34 2003 UTC vs.
Revision 3.16 by greg, Fri Jun 20 00:25:49 2003 UTC

# Line 19 | Line 19 | static const char      RCSid[] = "$Id$";
19   QUADTREE  *quad_block[QT_MAX_BLK];        /* our quadtree */
20   static QUADTREE  quad_free_list = EMPTY;  /* freed octree nodes */
21   static QUADTREE  treetop = 0;             /* next free node */
22 < int4 *quad_flag= NULL;                    /* quadtree flags */
22 > int32 *quad_flag= NULL;                    /* quadtree flags */
23  
24  
25   qtremovelast(qt,id)
# Line 52 | Line 52 | qtAlloc()                      /* allocate a quadtree */
52             error(SYSTEM,"qtAlloc(): Unable to allocate memory\n");
53  
54          /* Realloc the per/node flags */
55 <        quad_flag = (int4 *)realloc((void *)quad_flag,
55 >        quad_flag = (int32 *)realloc((void *)quad_flag,
56                          (QT_BLOCK(freet)+1)*((QT_BLOCK_SIZE+7)>>3));
57          if (quad_flag == NULL)
58             error(SYSTEM,"qtAlloc(): Unable to allocate memory\n");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines