Ignore:
Timestamp:
Nov 10, 2005, 9:41:13 PM (17 years ago)
Author:
Sam Hocevar
Message:
  • absolute shitloads of 64 bit fixes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/targa.cpp

    r4 r17  
    1414  }
    1515 
    16   unsigned char id,color_map,im_type;
     16  uint8_t id,color_map,im_type;
    1717
    18   id=fp->read_byte();
    19   color_map=fp->read_byte();
    20   im_type=fp->read_byte();
     18  id=fp->read_uint8();
     19  color_map=fp->read_uint8();
     20  im_type=fp->read_uint8();
    2121
    2222  if (color_map!=0)
     
    3232  }
    3333
    34   fp->read_short();
    35   fp->read_short();
    36   fp->read_byte();
     34  fp->read_uint16();
     35  fp->read_uint16();
     36  fp->read_uint8();
    3737
    38   fp->read_short();
    39   fp->read_short();
     38  fp->read_uint16();
     39  fp->read_uint16();
    4040
    4141
    42   int w=fp->read_short();
    43   int h=fp->read_short();
    44   unsigned char bpp=fp->read_byte();
    45   unsigned char im_des=fp->read_byte();
     42  int w=fp->read_uint16();
     43  int h=fp->read_uint16();
     44  uint8_t bpp=fp->read_uint8();
     45  uint8_t im_des=fp->read_uint8();
    4646
    4747  if (bpp!=32)
     
    5454
    5555  int x,y;
    56   unsigned char ctrl;
    57   unsigned char bgra[4],*sl,c,lr=0,lg=0,lb=0,ll=0,lc=0;
     56  uint8_t ctrl;
     57  uint8_t bgra[4],*sl,c,lr=0,lg=0,lb=0,ll=0,lc=0;
    5858 
    5959 
     
    6868      for (x=0;x<w;)
    6969      {
    70         ctrl=fp->read_byte();
     70        ctrl=fp->read_uint8();
    7171        if (ctrl&0x80)
    7272        {
Note: See TracChangeset for help on using the changeset viewer.