Ignore:
Timestamp:
May 19, 2009, 10:42:40 PM (11 years ago)
Author:
Sam Hocevar
Message:

Fix a few DOS compilation warnings.

File:
1 edited

Legend:

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

    r3130 r3484  
    391391        else
    392392        {
     393            unsigned int tmp;
     394
    393395            if(caca_file_gets(f, buf, 2048) == NULL)
    394396                break;
     
    416418            }
    417419
    418             if(buf[1] == 'x')
    419                 sscanf(buf, "%x", &ff->lookup[ff->glyphs * 2]);
    420             else
    421                 sscanf(buf, "%u", &ff->lookup[ff->glyphs * 2]);
     420            sscanf(buf, buf[1] == 'x' ? "%x" : "%u", &tmp);
     421            ff->lookup[ff->glyphs * 2] = tmp;
    422422        }
    423423
Note: See TracChangeset for help on using the changeset viewer.