IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 7, 2020, 2:06:23 PM (6 years ago)
Author:
eugene
Message:

libfits I/O operations where using signed char instead of unsigned char for byte-values table columns (B) -- this only affects the definition of SkyRegion.d

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libautocode/generate

    r37807 r41395  
    118118        $pt1 = 0;
    119119        if ($type eq "char")          { $pt1 = "A"; }
    120         if ($type eq "byte")          { $pt1 = "B"; }
     120        if ($type eq "byte")          { $pt1 = "B"; }
    121121        if ($type eq "unsigned char") { $pt1 = "B"; }
    122122        if ($type eq "rawshort")      { $pt1 = "I"; }
     
    225225        $pt1 = 0;
    226226        if ($type eq "char")          { $pt1 = sprintf "A%s", $length; }
    227         if ($type eq "byte")          { $pt1 = sprintf "I%s", $length; }
     227        if ($type eq "byte")          { $pt1 = sprintf "I%s", $length; }
    228228        if ($type eq "unsigned char") { $pt1 = sprintf "I%s", $length; }
    229229        if ($type eq "rawshort")      { $pt1 = sprintf "I%s", $length; }
     
    355355        $valid = 0;
    356356        if ($type eq "char")           { $Nbytes += 1*$Np; $valid = 1; }
    357         if ($type eq "byte")           { $Nbytes += 1*$Np; $valid = 1; }
     357        if ($type eq "byte")           { $Nbytes += 1*$Np; $valid = 1; }
    358358        if ($type eq "unsigned char")  { $Nbytes += 1*$Np; $valid = 1; }
    359359        if ($type eq "rawshort")       { $Nbytes += 2*$Np; $valid = 1; }
Note: See TracChangeset for help on using the changeset viewer.