Ignore:
Timestamp:
Nov 16, 2003, 12:26:54 PM (19 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
  • libcaca/trunk/libcaca/graphics.c

    r185 r187  
    6464void caca_putchar(int x, int y, char c)
    6565{
    66     if(x < 0 || x >= caca_get_width() || y < 0 || y >= caca_get_height())
     66    if(x < 0 || x >= (int)caca_get_width() ||
     67       y < 0 || y >= (int)caca_get_height())
    6768        return;
    6869
     
    8384void caca_putstr(int x, int y, const char *s)
    8485{
    85     int len;
     86    unsigned int len;
    8687
    87     if(y < 0 || y >= caca_get_height() || x >= caca_get_width())
     88    if(y < 0 || y >= (int)caca_get_height() || x >= (int)caca_get_width())
    8889        return;
    8990
     
    130131    va_list args;
    131132
    132     if(y < 0 || y >= caca_get_height() || x >= caca_get_width())
     133    if(y < 0 || y >= (int)caca_get_height() || x >= (int)caca_get_width())
    133134        return;
    134135
Note: See TracChangeset for help on using the changeset viewer.