Ignore:
Timestamp:
Aug 11, 2009, 10:56:57 PM (13 years ago)
Author:
Sam Hocevar
Message:

Fix numerous compiler warnings.

File:
1 edited

Legend:

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

    r134 r162  
    261261  else if (ncolors==16)
    262262    for (i=0;i<ncolors;i++)
    263       set(i,255-i&3,255-(i&4)>>2,255-(i&8)>>3);
     263      set(i,255-(i&3),255-(i&4)>>2,255-(i&8)>>3);
    264264  else
    265265    for (i=0;i<ncolors;i++)
    266       set(i,255-i%3,255-(i+1)%3,255-(i+2)%3);
     266      set(i,255-(i%3),255-((i+1)%3),255-((i+2)%3));
    267267}
    268268
Note: See TracChangeset for help on using the changeset viewer.