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

Comparing ray/src/util/rpiece.c (file contents):
Revision 2.61 by greg, Fri Nov 17 20:36:50 2023 UTC vs.
Revision 2.62 by greg, Mon Jun 3 18:55:51 2024 UTC

# Line 566 | Line 566 | int    ypos
566          if (lseek(outfd, (off_t)fls.l_start, SEEK_SET) < 0)
567                  filerr("seek");
568          if (hmult == 1) {
569 <                if (writebuf(outfd, (char *)pbuf,
569 >                if (writebuf(outfd, pbuf,
570                                  vr*hr*sizeof(COLR)) != vr*hr*sizeof(COLR))
571                          filerr("write");
572          } else
573                  for (y = 0; y < vr; y++) {
574 <                        if (writebuf(outfd, (char *)(pbuf+y*hr),
574 >                        if (writebuf(outfd, pbuf+y*hr,
575                                          hr*sizeof(COLR)) != hr*sizeof(COLR))
576                                  filerr("write");
577                          if (y < vr-1 && lseek(outfd,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines