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

Comparing ray/src/common/calfunc.c (file contents):
Revision 2.17 by greg, Sat Apr 20 02:31:41 2013 UTC vs.
Revision 2.18 by greg, Sat Aug 1 23:27:04 2015 UTC

# Line 338 | Line 338 | libfunc(                               /* execute library function */
338      errno = 0;
339      d = (*lp->f)(lp->fname);
340   #ifdef  isnan
341 <    if (errno == 0)
341 >    if (errno == 0) {
342          if (isnan(d))
343              errno = EDOM;
344          else if (isinf(d))
345              errno = ERANGE;
346 +    }
347   #endif
348      if (errno == EDOM || errno == ERANGE) {
349          wputs(fname);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines