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

    r5238 r5851  
    8484  perpix = abs(header.bitpix) / 8;
    8585  if (perpix > 1) {
    86     byte0 = (char *) matrix[0].buffer;
    87     byte1 = (char *) matrix[0].buffer + 1;
    88     byte2 = (char *) matrix[0].buffer + 2;
    89     byte3 = (char *) matrix[0].buffer + 3;
    90     byte4 = (char *) matrix[0].buffer + 4;
    91     byte5 = (char *) matrix[0].buffer + 5;
    92     byte6 = (char *) matrix[0].buffer + 6;
    93     byte7 = (char *) matrix[0].buffer + 7;
     86    byte0 = (unsigned char *) matrix[0].buffer;
     87    byte1 = (unsigned char *) matrix[0].buffer + 1;
     88    byte2 = (unsigned char *) matrix[0].buffer + 2;
     89    byte3 = (unsigned char *) matrix[0].buffer + 3;
     90    byte4 = (unsigned char *) matrix[0].buffer + 4;
     91    byte5 = (unsigned char *) matrix[0].buffer + 5;
     92    byte6 = (unsigned char *) matrix[0].buffer + 6;
     93    byte7 = (unsigned char *) matrix[0].buffer + 7;
    9494    if (perpix == 2) {
    9595      for (i = 0; i < nbytes; i+=2, byte0 += 2, byte1 += 2) {
Note: See TracChangeset for help on using the changeset viewer.