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

Comparing ray/src/rt/p_func.c (file contents):
Revision 2.5 by greg, Tue Feb 25 02:47:23 2003 UTC vs.
Revision 2.6 by greg, Wed Mar 5 16:16:53 2003 UTC

# Line 47 | Line 47 | RAY  *r;
47          setfunc(m, r);
48          errno = 0;
49          bval = evalue(mf->ep[0]);
50 <        if (errno) {
50 >        if (errno == EDOM || errno == ERANGE) {
51                  objerror(m, WARNING, "compute error");
52                  return(0);
53          }
# Line 71 | Line 71 | RAY  *r;
71          setcolor(cval, evalue(mf->ep[0]),
72                          evalue(mf->ep[1]),
73                          evalue(mf->ep[2]));
74 <        if (errno) {
74 >        if (errno == EDOM || errno == ERANGE) {
75                  objerror(m, WARNING, "compute error");
76                  return(0);
77          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines