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_load_M.c

    r5238 r5851  
    3434  perpix = abs(header[0].bitpix) / 8;
    3535  if (perpix > 1) {
    36     byte0 = (char *) matrix[0].buffer;
    37     byte1 = (char *) matrix[0].buffer + 1;
    38     byte2 = (char *) matrix[0].buffer + 2;
    39     byte3 = (char *) matrix[0].buffer + 3;
    40     byte4 = (char *) matrix[0].buffer + 4;
    41     byte5 = (char *) matrix[0].buffer + 5;
    42     byte6 = (char *) matrix[0].buffer + 6;
    43     byte7 = (char *) matrix[0].buffer + 7;
     36    byte0 = (unsigned char *) matrix[0].buffer;
     37    byte1 = (unsigned char *) matrix[0].buffer + 1;
     38    byte2 = (unsigned char *) matrix[0].buffer + 2;
     39    byte3 = (unsigned char *) matrix[0].buffer + 3;
     40    byte4 = (unsigned char *) matrix[0].buffer + 4;
     41    byte5 = (unsigned char *) matrix[0].buffer + 5;
     42    byte6 = (unsigned char *) matrix[0].buffer + 6;
     43    byte7 = (unsigned char *) matrix[0].buffer + 7;
    4444    if (perpix == 2) {
    4545      for (i = 0; i < nbytes; i+=2, byte0 += 2, byte1 += 2) {
Note: See TracChangeset for help on using the changeset viewer.