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.22 by greg, Mon Jul 15 21:27:25 2019 UTC vs.
Revision 2.23 by greg, Fri Jan 15 18:31:38 2021 UTC

# Line 62 | Line 62 | putflt(                                /* put out floating point number */
62   }
63  
64  
65 < int
65 > size_t
66   putbinary(                      /* fwrite() replacement for small objects */
67          const void *p,
68 <        int elsiz,
69 <        int nel,
68 >        size_t elsiz,
69 >        size_t nel,
70          FILE *fp)
71   {
72          const char      *s = (const char *)p;
73 <        int             nbytes = elsiz*nel;
73 >        size_t          nbytes = elsiz*nel;
74  
75          if (nbytes > 128)
76                  return(fwrite(p, elsiz, nel, fp));
# Line 143 | Line 143 | getflt(                                /* get a floating point number */
143   }
144  
145  
146 < int
146 > size_t
147   getbinary(                      /* fread() replacement for small objects */
148          void *p,
149 <        int elsiz,
150 <        int nel,
149 >        size_t elsiz,
150 >        size_t nel,
151          FILE *fp)
152   {
153          char    *s = (char *)p;
154 <        int     nbytes = elsiz*nel;
154 >        size_t  nbytes = elsiz*nel;
155          int     c;
156  
157          if (nbytes > 128)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines