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

Comparing ray/src/hd/rhcopy.c (file contents):
Revision 3.5 by gregl, Wed Jan 7 09:23:02 1998 UTC vs.
Revision 3.6 by gregl, Wed Jan 7 10:49:12 1998 UTC

# Line 203 | Line 203 | char   *hdf;
203                  hbl = (HDBEAMI *)malloc(nbeams(hp)*sizeof(HDBEAMI));
204                  if (hbl == NULL)
205                          error(SYSTEM, "out of memory in addholo");
206 <                for (j = nbeams(hp); j > 0; j--) {      /* sort the beams */
206 >                for (j = nbeams(hp); j--; ) {   /* sort the beams */
207                          hbl[j].h = hp;
208 <                        hbl[j].b = j;
208 >                        hbl[j].b = j+1;
209                  }
210                  qsort((char *)hbl, nbeams(hp), sizeof(HDBEAMI), hdfilord);
211                  for (j = 0; j < nbeams(hp); j++)        /* load each beam */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines