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.35 by greg, Sat Sep 4 19:04:35 2010 UTC vs.
Revision 2.36 by greg, Sat Aug 1 23:27:04 2015 UTC

# Line 295 | Line 295 | epow(
295      errno = 0;
296      d = pow(evalue(ep1), evalue(ep1->sibling));
297   #ifdef  isnan
298 <    if (errno == 0)
298 >    if (errno == 0) {
299          if (isnan(d))
300              errno = EDOM;
301          else if (isinf(d))
302              errno = ERANGE;
303 +    }
304   #endif
305      if (errno == EDOM || errno == ERANGE) {
306          wputs("Illegal power\n");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines