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

Comparing ray/src/rt/pmapmat.c (file contents):
Revision 2.24 by rschregle, Mon Feb 22 13:27:49 2021 UTC vs.
Revision 2.25 by greg, Tue Dec 3 19:36:58 2024 UTC

# Line 497 | Line 497 | static void getacoords (ANISODAT *nd)
497     for (i = 0; i < 3; i++)
498        nd -> u [i] = evalue(mf -> ep [i]);
499    
500 <   if (errno == EDOM || errno == ERANGE)
500 >   if ((errno == EDOM) | (errno == ERANGE))
501        nd -> u [0] = nd -> u [1] = nd -> u [2] = 0.0;
502        
503     if (mf -> fxp != &unitxf)
# Line 1546 | Line 1546 | static int brdfPhotonScatter (OBJREC *mat, RAY *rayIn)
1546              evalue(mf->ep[0]), evalue(mf->ep[1]), evalue(mf->ep[2]));
1547     setcolor(tspecCol,
1548              evalue(mf->ep[3]), evalue(mf->ep[4]), evalue(mf->ep[5]));
1549 <   if (errno == EDOM || errno == ERANGE)
1549 >   if ((errno == EDOM) | (errno == ERANGE))
1550        objerror(mat, WARNING, "compute error");
1551     else {
1552        /* Set up probz */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines