IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38442


Ignore:
Timestamp:
Jun 12, 2015, 8:53:37 PM (11 years ago)
Author:
eugene
Message:

fix types in verbose output statements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libfits/test/zlib.c

    r38427 r38442  
    1818int main (int argc, char **argv) {
    1919 
    20   plan_tests (7);
     20  plan_tests (14);
    2121
    2222  diag ("libfits zlib.c tests");
     
    7474    ok (zdn.total_out <= NTGT*sizeof(double), "output compressed size is good");
    7575
     76    char *tgtdata = (char *) tgtbuf;
    7677    if (VERBOSE) fprintf (stderr, "result: %d bytes\n", (int) zdn.total_out);
    77     for (i = 0; VERBOSE && (i < zdn.total_out / sizeof(double)); i++) {
    78       fprintf (stderr, "%d : 0x%02hhx\n", i, tgtbuf[i]);
     78    for (i = 0; VERBOSE && i < zdn.total_out; i++) {
     79      fprintf (stderr, "%d : 0x%02hhx\n", i, tgtdata[i]);
    7980    }
    8081  }
     
    164165    ok (zdn.total_out <= NTGT*sizeof(double), "output compressed size is good");
    165166
     167    char *tgtdata = (char *) tgtbuf;
    166168    if (VERBOSE) fprintf (stderr, "result: %d bytes\n", (int) zdn.total_out);
    167     for (i = 0; VERBOSE && (i < zdn.total_out / sizeof(double)); i++) {
    168       fprintf (stderr, "%d : 0x%02hhx\n", i, tgtbuf[i]);
     169    for (i = 0; VERBOSE && (i < zdn.total_out); i++) {
     170      fprintf (stderr, "%d : 0x%02hhx\n", i, tgtdata[i]);
    169171    }
    170172  }
Note: See TracChangeset for help on using the changeset viewer.