Commit 3c5e9340 authored by Reinhard Prix's avatar Reinhard Prix

fits_array_copy.c: fix obscure Mac warning

Original: d3ed67fae74605cc968b85d0ec670f85d69d5336
parent 30bfd3d5
......@@ -40,7 +40,7 @@ int main(int argc, char *argv[])
int hdutype = 0, bitpix = 0, bytepix = 0, naxis = 0, nkeys = 0, datatype = 0, anynul = 0;
long naxes[9] = {1, 1, 1, 1, 1, 1, 1, 1, 1};
long first = 0, totpix = 0, npix = 0;
double *array = 0, bscale = 1.0, bzero = 0.0, nulval = 0.;
double *array = 0, bscale = 1.0, b0 = 0.0, nulval = 0.;
char card[81];
int printhelp = (argc == 2 && (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0));
......@@ -189,8 +189,8 @@ int main(int argc, char *argv[])
}
/* turn off any scaling so that we copy the raw pixel values */
fits_set_bscale(infptr, bscale, bzero, &status);
fits_set_bscale(outfptr, bscale, bzero, &status);
fits_set_bscale(infptr, bscale, b0, &status);
fits_set_bscale(outfptr, bscale, b0, &status);
first = 1;
while (totpix > 0 && !status) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment