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

Comparing ray/src/rt/data.c (file contents):
Revision 1.7 by greg, Tue May 8 10:37:57 1990 UTC vs.
Revision 1.8 by greg, Tue Jan 15 22:24:19 1991 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1986 Regents of the University of California */
1 > /* Copyright (c) 1991 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 299 | Line 299 | double  *pt;
299                          i = (lower + upper) >> 1;
300                          if (pt[0] >= dp->dim[0].p[i])
301                                  lower = i;
302 <                        else if (pt[0] < dp->dim[0].p[i])
302 >                        else
303                                  upper = i;
304                  } while (i != (lower + upper) >> 1);
305 <                if (i < 0)
306 <                        i = 0;
307 <                else if (i > dp->dim[0].ne - 2)
305 >                if (i > dp->dim[0].ne - 2)
306                          i = dp->dim[0].ne - 2;
307                  x = i + (pt[0] - dp->dim[0].p[i]) /
308                                  (dp->dim[0].p[i+1] - dp->dim[0].p[i]);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines