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

Comparing ray/src/px/pinterp.c (file contents):
Revision 2.37 by schorsch, Sun Jul 27 22:12:03 2003 UTC vs.
Revision 2.38 by greg, Mon Oct 20 16:01:55 2003 UTC

# Line 13 | Line 13 | static const char      RCSid[] = "$Id$";
13   #include <string.h>
14  
15   #include "standard.h"
16 + #include "platform.h"
17   #include "rtprocess.h" /* Windows: must come before color.h */
18   #include "view.h"
19   #include "color.h"
# Line 491 | Line 492 | char   *pfile, *zspec;
492                          exit(1);
493                  }
494          if (zfd != -1 && lseek(zfd,
495 <                        (off_t)ylim.min*scanlen(&tresolu)*sizeof(float), 0) < 0)
495 >                        (off_t)ylim.min*scanlen(&tresolu)*sizeof(float),
496 >                        SEEK_SET) < 0)
497                  syserror(zspec);
498                                          /* load image */
499          for (y = ylim.min; y <= ylim.max; y++) {
# Line 759 | Line 761 | int    zfd;
761          for (y = step - 1; y < numscans(&tresolu); y += step) {
762                  if (zfd != -1) {
763                          if (lseek(zfd, (off_t)y*scanlen(&tresolu)*sizeof(float),
764 <                                        0) < 0)
764 >                                        SEEK_SET) < 0)
765                                  syserror("lseek");
766                          if (read(zfd, (char *)zline,
767                                          scanlen(&tresolu)*sizeof(float))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines