| # | Line 162 | 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); | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |