Ignore:
Timestamp:
Mar 14, 2006, 8:01:19 PM (14 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Fixed UPPER() for strcasecmp
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/kernel/kernel.c

    r607 r608  
    2828#define IS_UPPER(x) (x>='A' && x<='Z')
    2929#define IS_LOWER(x) (x>='a' && x<='z')
    30 #define UPPER(x) (IS_LOWER(x)?(x+('a'-'A')):x)
     30#define UPPER(x) (IS_LOWER(x)?(x+('A'-'a')):x)
    3131#define LOWER(x) (IS_UPPER(x)?(x-('a'-'A')):x)
    3232
     
    6969void *realloc(void *ptr, size_t size)
    7070{
    71     uint32_t oldsize = ((uint32_t *)ptr)[-1];
     71   uint32_t oldsize = ((uint32_t *)ptr)[-1];
    7272    void *p;
    7373    if(oldsize >= size)
     
    280280        ret = (ret * ret + x) / (ret * 2.0);
    281281
    282     return ret;
     282    return (double)ret;
    283283}
    284284
Note: See TracChangeset for help on using the changeset viewer.