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.41 by greg, Thu Mar 3 03:55:12 2022 UTC vs.
Revision 2.42 by greg, Thu Mar 3 15:43:04 2022 UTC

# Line 214 | Line 214 | fputformat(            /* put out a format value */
214          fputs(FMTSTR, fp);
215          fputs(s, fp);
216                          /* pad to align binary type for mmap() */
217 <        if (!strcmp(s, "float"))
217 >        if (!strncmp(s, "16-bit", 6))
218 >                align = 2;
219 >        else if (!strcmp(s, "float") || !strncmp(s, "32-bit", 6))
220                  align = 4;
221 <        else if (!strcmp(s, "double"))
221 >        else if (!strcmp(s, "double") || !strncmp(s, "64-bit", 6))
222                  align = 8;
223          if (align) {
224                  long    pos = ftell(fp);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines