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

Comparing ray/src/common/portio.c (file contents):
Revision 2.26 by greg, Fri Feb 19 18:00:29 2021 UTC vs.
Revision 2.27 by greg, Mon Jul 12 17:42:51 2021 UTC

# Line 147 | Line 147 | getflt(                                /* get a floating point number */
147                  getc(fp);               /* exactly zero -- ignore exponent */
148                  return(0.0);
149          }
150 <        d = (l + (l > 0 ? .5 : -.5)) * (1./0x7fffffff);
150 >        d = (l + .5 - (l<0)) * (1./0x7fffffff);
151          return(ldexp(d, (int)getint(1, fp)));
152   }
153  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines