IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 27, 2015, 8:39:54 PM (11 years ago)
Author:
eugene
Message:

merge changes from eam_branches/ipp-20150625 (pcount is off_t; handle \r\n EOL)

Location:
trunk/Ohana/src/libfits
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libfits

  • trunk/Ohana/src/libfits/matrix/F_uncompress_M.c

    r38441 r38989  
    161161
    162162    // we may have an uncompressed PCOUNT / GCOUNT value, otherwise set to 0,1
    163     if (gfits_scan (header, "ZPCOUNT", "%d", 1, &header->pcount)) {
     163    if (gfits_scan (header, "ZPCOUNT", OFF_T_FMT, 1, &header->pcount)) {
    164164        gfits_delete (header, "ZPCOUNT", 1);
    165         gfits_modify (header, "PCOUNT", "%d", 1, header->pcount);
     165        gfits_modify (header, "PCOUNT", OFF_T_FMT, 1, header->pcount);
    166166    } else {
    167167        header->pcount = 0;
    168         gfits_modify (header, "PCOUNT", "%d", 1, header->pcount);
     168        gfits_modify (header, "PCOUNT", OFF_T_FMT, 1, header->pcount);
    169169    }
    170170    if (gfits_scan (header, "ZGCOUNT", "%d", 1, &header->gcount)) {
     
    178178    header->pcount = 0;
    179179    header->gcount = 1;
    180     gfits_modify (header, "PCOUNT", "%d", 1, header->pcount);
     180    gfits_modify (header, "PCOUNT", OFF_T_FMT, 1, header->pcount);
    181181    gfits_modify (header, "GCOUNT", "%d", 1, header->gcount);
    182182  }
Note: See TracChangeset for help on using the changeset viewer.