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

Comparing ray/src/common/calexpr.c (file contents):
Revision 2.19 by greg, Tue Feb 25 02:47:21 2003 UTC vs.
Revision 2.20 by greg, Wed Mar 5 16:16:52 2003 UTC

# Line 281 | Line 281 | EPNODE *ep;
281      if (!finite(d))
282          errno = EDOM;
283   #endif
284 <    if (errno) {
284 >    if (errno == EDOM || errno == ERANGE) {
285          wputs("Illegal power\n");
286          return(0.0);
287      }
# Line 727 | Line 727 | register EPNODE         *epar;
727      ep->type = NUM;
728      errno = 0;
729      ep->v.num = evalue(epar);
730 <    if (errno)
730 >    if (errno == EDOM || errno == ERANGE)
731          syntax("bad constant expression");
732      epfree(epar);
733  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines