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.3 by greg, Fri Oct 2 16:09:57 1992 UTC vs.
Revision 2.4 by greg, Fri Nov 15 16:17:05 1996 UTC

# Line 93 | Line 93 | FILE  *fp;
93   {
94          double  d;
95  
96 <        d = (double)getint(4, fp)/0x7fffffff;
96 >        d = (getint(4, fp) + .5) / 0x7fffffff;
97          return(ldexp(d, (int)getint(1, fp)));
98   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines