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

Comparing ray/src/ot/writeoct.c (file contents):
Revision 1.1 by greg, Thu Feb 2 10:33:07 1989 UTC vs.
Revision 1.2 by greg, Tue Mar 21 15:55:07 1989 UTC

# Line 92 | Line 92 | register long  i;
92   register int  siz;
93   {
94          while (siz--)
95 <                putc(i>>(siz<<3) & 0377, stdout);
95 >                putc(i>>(siz<<3) & 0xff, stdout);
96          if (ferror(stdout))
97                  error(SYSTEM, "write error in putint");
98   }
# Line 105 | Line 105 | double  f;
105          extern double  frexp();
106          int  e;
107  
108 <        putint((long)(frexp(f,&e)*0x7fffffff), sizeof(long));
108 >        putint((long)(frexp(f,&e)*0x7fffffff), 4);
109          putint(e, 1);
110   }
111  
# Line 147 | Line 147 | register OBJREC  *o;
147   #ifdef  IARGS
148          putint(o->oargs.niargs, 2);
149          for (i = 0; i < o->oargs.niargs; i++)
150 <                putint(o->oargs.iarg[i], sizeof(long));
150 >                putint(o->oargs.iarg[i], 4);
151   #endif
152          putint((long)o->oargs.nfargs, 2);
153          for (i = 0; i < o->oargs.nfargs; i++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines