Ignore:
Timestamp:
Nov 16, 2003, 12:26:54 PM (17 years ago)
Author:
Sam Hocevar
Message:
  • configure.ac: + Added -Wsign-compare to the warning flags.
  • libcaca/caca.c: + Fixed a signed/unsigned bug that caused infinite waits with

ee_set_delay(0).

  • src/weapons.c libcaca/graphics.c libcaca/blit.c libcaca/conic.c: + Fixed minor signed/unsigned comparison warnings.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ttyvaders/trunk/libcaca/conic.c

    r186 r188  
    184184    uint8_t b = 0;
    185185
    186     if(xo + x >= 0 && xo + x < caca_get_width())
     186    if(xo + x >= 0 && xo + x < (int)caca_get_width())
    187187        b |= 0x1;
    188     if(xo - x >= 0 && xo - x < caca_get_width())
     188    if(xo - x >= 0 && xo - x < (int)caca_get_width())
    189189        b |= 0x2;
    190     if(yo + y >= 0 && yo + y < caca_get_height())
     190    if(yo + y >= 0 && yo + y < (int)caca_get_height())
    191191        b |= 0x4;
    192     if(yo - y >= 0 && yo - y < caca_get_height())
     192    if(yo - y >= 0 && yo - y < (int)caca_get_height())
    193193        b |= 0x8;
    194194
Note: See TracChangeset for help on using the changeset viewer.