IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 27, 2005, 3:22:30 PM (21 years ago)
Author:
eugene
Message:

fixed signed-ness of pointers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libfits/matrix/F_read_portion.c

    r5238 r5851  
    5252  perpix = abs(header.bitpix) / 8;
    5353  if (perpix > 1) {
    54     byte0 = (char *) matrix[0].buffer;
    55     byte1 = (char *) matrix[0].buffer + 1;
    56     byte2 = (char *) matrix[0].buffer + 2;
    57     byte3 = (char *) matrix[0].buffer + 3;
    58     byte4 = (char *) matrix[0].buffer + 4;
    59     byte5 = (char *) matrix[0].buffer + 5;
    60     byte6 = (char *) matrix[0].buffer + 6;
    61     byte7 = (char *) matrix[0].buffer + 7;
     54    byte0 = (unsigned char *) matrix[0].buffer;
     55    byte1 = (unsigned char *) matrix[0].buffer + 1;
     56    byte2 = (unsigned char *) matrix[0].buffer + 2;
     57    byte3 = (unsigned char *) matrix[0].buffer + 3;
     58    byte4 = (unsigned char *) matrix[0].buffer + 4;
     59    byte5 = (unsigned char *) matrix[0].buffer + 5;
     60    byte6 = (unsigned char *) matrix[0].buffer + 6;
     61    byte7 = (unsigned char *) matrix[0].buffer + 7;
    6262    if (perpix == 2) {
    6363      for (i = 0; i < nbytes; i+=2, byte0 += 2, byte1 += 2) {
Note: See TracChangeset for help on using the changeset viewer.