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

Comparing ray/src/util/rttree_reduce.c (file contents):
Revision 2.15 by schorsch, Thu Mar 10 23:18:59 2016 UTC vs.
Revision 2.16 by greg, Thu Aug 18 00:52:48 2016 UTC

# Line 201 | Line 201 | read_float(float *rowp, int n)
201  
202          if ((rowp == NULL) | (n <= 0))
203                  return(0);
204 <        nread = fread(rowp, sizeof(float), n, stdin);
204 >        nread = getbinary(rowp, sizeof(float), n, stdin);
205          if (nread != n)
206                  error(USER, "unexpected EOF on float input");
207          return(nread);
# Line 227 | Line 227 | read_double(float *rowp, int n)
227                  if (rowbuf == NULL)
228                          error(SYSTEM, "out of memory in read_double");
229          }
230 <        nread = fread(rowbuf, sizeof(double), n, stdin);
230 >        nread = getbinary(rowbuf, sizeof(double), n, stdin);
231          if (nread != n)
232                  error(USER, "unexpected EOF on double input");
233          for (i = 0; i < nread; i++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines