--- ray/src/px/aedimage.c 1991/04/18 14:35:03 1.10 +++ ray/src/px/aedimage.c 1991/12/19 14:51:44 2.2 @@ -97,7 +97,6 @@ FILE *fin; extern long ftell(); long scanpos[NROWS]; -extern double atof(); double exposure = 1.0; int wrong_fmt = 0; @@ -145,7 +144,7 @@ char *argv[]; if (wrong_fmt) quitmsg("input must be a Radiance picture"); /* get picture dimensions */ - if (fgetresolu(&xmax, &ymax, fin) != (YMAJOR|YDECR)) + if (fgetresolu(&xmax, &ymax, fin) < 0) quitmsg("bad picture size"); if (xmax > NCOLS || ymax > NROWS) quitmsg("resolution mismatch");