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

Comparing ray/src/common/header.c (file contents):
Revision 2.36 by greg, Wed Aug 14 18:20:02 2019 UTC vs.
Revision 2.38 by greg, Tue Sep 24 21:25:59 2019 UTC

# Line 225 | Line 225 | isbigendian(           /* header line says "BigEndian=1" (-1 if
225   {
226          const char      *be = BIGEND;
227  
228 <        while (*s & (*be != '=') && *s++ == *be)
228 >        while ((*s != '\0') & (*be != '=') && *s++ == *be)
229                  ++be;
230          if (*be != '=')
231                  return(-1);     /* irrelevant */
# Line 299 | Line 299 | mycheck(                       /* check a header line for format info. */
299          struct check    *scp = (struct check *)cp;
300  
301          if (!formatval(scp->fs, s) && scp->fp != NULL)
302 <                fputs(s, scp->fp);
302 >                return(fputs(s, scp->fp));
303  
304          return(0);
305   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines