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

Comparing ray/src/util/findglare.c (file contents):
Revision 2.5 by greg, Wed Feb 3 17:55:34 1993 UTC vs.
Revision 2.6 by greg, Mon Jun 7 10:31:35 1993 UTC

# Line 364 | Line 364 | int    x, y;
364                  xo = x-hl;
365          else
366                  xo = 0;
367 <        disc = 1. - (double)(xo*xo + y*y)/(sampdens*sampdens);
368 <        if (disc <= FTINY)
367 >        disc = 1. - (double)((long)xo*xo + (long)y*y)/((long)sampdens*sampdens);
368 >        if (disc <= FTINY*FTINY)
369                  return(0.);
370          return(1./(sampdens*sampdens*sqrt(disc)));
371   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines