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

Comparing ray/src/util/vwrays.c (file contents):
Revision 3.5 by schorsch, Thu Jun 26 00:58:11 2003 UTC vs.
Revision 3.8 by greg, Mon Oct 20 16:01:55 2003 UTC

# Line 8 | Line 8 | static const char      RCSid[] = "$Id$";
8  
9   #include "standard.h"
10  
11 + #include "platform.h"
12   #include "view.h"
13  
14   extern int      putf(), putd(), puta();
# Line 99 | Line 100 | char   *argv[];
100                  default:
101                          goto userr;
102                  }
103 <        if (i > argc | i+2 < argc)
103 >        if ((i > argc) | (i+2 < argc))
104                  goto userr;
105          if (i < argc) {
106                  rval = viewfile(argv[i], &vw, &rs);
# Line 161 | Line 162 | pix2rays(FILE *fp)
162                  if (zfd >= 0) {
163                          loc2pix(pp, &rs, px/rs.xr, py/rs.yr);
164                          if (lseek(zfd,
165 <                                (pp[1]*scanlen(&rs)+pp[0])*sizeof(float), 0)
166 <                                        < 0 ||
165 >                                (pp[1]*scanlen(&rs)+pp[0])*sizeof(float),
166 >                                                SEEK_SET) < 0 ||
167                                          read(zfd, &zval, sizeof(float))
168 <                                        < sizeof(float)) {
168 >                                                < sizeof(float)) {
169                                  fprintf(stderr, "%s: depth buffer read error\n",
170                                                  progname);
171                                  exit(1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines