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

Comparing ray/src/hd/viewbeams.c (file contents):
Revision 3.2 by greg, Sat Feb 22 02:07:25 2003 UTC vs.
Revision 3.4 by greg, Fri Jun 20 00:25:49 2003 UTC

# Line 37 | Line 37 | int    hd, bi, nr;
37                  }
38          i = blist.nb++;                         /* else add beam to list */
39          if (i % BALLOCBLK == 0) {
40 <                blist.bl = (PACKHEAD *)realloc((char *)blist.bl,
40 >                blist.bl = (PACKHEAD *)realloc((void *)blist.bl,
41                                  (i+BALLOCBLK)*sizeof(PACKHEAD));
42                  CHECK(blist.bl==NULL, SYSTEM, "out of memory in add2blist");
43          }
# Line 46 | Line 46 | int    hd, bi, nr;
46   }
47  
48  
49 < int2 *
49 > int16 *
50   viewbeams(vp, hr, vr, blp)              /* convert view into sections/beams */
51   VIEW    *vp;
52   int     hr, vr;
53   BEAMLIST        *blp;
54   {
55 <        static int2     sectlist[HDMAX+1];
56 <        int2    sectarr[MINRES+1][MINRES+1];
55 >        static int16    sectlist[HDMAX+1];
56 >        int16   sectarr[MINRES+1][MINRES+1];
57          double  d0, d1, mindist;
58          GCOORD  gc[2];
59          FVECT   rorg, rdir;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines