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.1 by greg, Mon Jul 13 15:36:01 1992 UTC vs.
Revision 2.2 by greg, Mon Sep 21 12:02:23 1992 UTC

# Line 27 | Line 27 | register int  siz;
27   register FILE  *fp;
28   {
29          while (siz--)
30 <                putc(i>>(siz<<3) & 0xff, fp);
30 >                putc((int)(i>>(siz<<3) & 0xff), fp);
31   }
32  
33  
34   putflt(f, fp)                   /* put out floating point number */
35 < double  f;
35 > double  f;
36 > FILE  *fp;
37   {
38          extern double  frexp();
39          int  e;
# Line 85 | Line 86 | getflt(fp)                     /* get a floating point number */
86   FILE  *fp;
87   {
88          extern double  ldexp();
89 <        double  d;
89 >        double  d;
90  
91          d = (double)getint(4, fp)/0x7fffffff;
92          return(ldexp(d, (int)getint(1, fp)));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines