Ignore:
Timestamp:
Apr 19, 2008, 9:25:52 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Remove all unsigned ints from exported functions. Signed arithmetic is far better for error checking.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/time.c

    r2299 r2305  
    3636#include "caca_internals.h"
    3737
    38 void _caca_sleep(unsigned int usec)
     38void _caca_sleep(int usec)
    3939{
    4040#if defined(HAVE_USLEEP)
     
    4747}
    4848
    49 unsigned int _caca_getticks(caca_timer_t *timer)
     49int _caca_getticks(caca_timer_t *timer)
    5050{
    5151#if defined(HAVE_GETTIMEOFDAY)
     
    5353#elif defined(USE_WIN32)
    5454    static __int64 freq = -1; /* FIXME: can this move to caca_context? */
    55     unsigned __int64 usec;
     55    __int64 usec;
    5656#endif
    57     unsigned int ticks = 0;
     57    int ticks = 0;
    5858    int new_sec, new_usec;
    5959
Note: See TracChangeset for help on using the changeset viewer.