Ignore:
Timestamp:
Nov 18, 2005, 11:46:53 AM (17 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Fixed remaining warnings with gcc 3.x and 4.x
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/examples/aafire.c

    r377 r514  
    9393  int i;
    9494#ifdef LIBCACA
    95   int r[256], g[256], b[256], a[256];
     95  unsigned int r[256], g[256], b[256], a[256];
    9696#endif
    9797
     
    178178  i = 0;
    179179#define END (bitmap + XSIZ * YSIZ)
    180   for (p = bitmap; p <= (unsigned char *) (END); p += 1)
     180  for (p = (unsigned char*)bitmap;
     181       (char*)p <= (( char *) (END));
     182       p += 1)
    181183    {
    182184      *p = table[(*(p + XSIZ - 1) + *(p + XSIZ + 1) + *(p + XSIZ)) +
     
    206208  i1 = 1;
    207209  i2 = 4 * XSIZ + 1;
    208   for (p = (char *) bitmap + XSIZ * (YSIZ + 0);
     210  for (p = (unsigned char *) bitmap + XSIZ * (YSIZ + 0);
    209211       p < ((unsigned char *) bitmap + XSIZ * (YSIZ + 1));
    210212       p++, i1 += 4, i2 -= 4)
Note: See TracChangeset for help on using the changeset viewer.