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.19 by greg, Thu Aug 18 00:52:48 2016 UTC vs.
Revision 2.20 by greg, Thu Jul 4 02:06:32 2019 UTC

# Line 71 | Line 71 | putbinary(                     /* fwrite() replacement for small objects
71          const char      *s = (const char *)p;
72          int             nbytes = elsiz*nel;
73  
74 <        if (nbytes > 512)
74 >        if (nbytes > 256)
75                  return(fwrite(p, elsiz, nel, fp));
76          
77          while (nbytes-- > 0)
# Line 152 | Line 152 | getbinary(                     /* fread() replacement for small objects
152          int     nbytes = elsiz*nel;
153          int     c;
154  
155 <        if (nbytes > 512)
155 >        if (nbytes > 256)
156                  return(fread(p, elsiz, nel, fp));
157          
158          while (nbytes-- > 0) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines