Ignore:
Timestamp:
Apr 23, 2008, 11:24:34 PM (13 years ago)
Author:
Sam Hocevar
Message:
  • Switch a few unsigned int variables to size_t where appropriate.
  • Synchronise parameter types in the C++ bindings with the C API.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cucul/import.c

    r2304 r2313  
    223223{
    224224    uint8_t const *buf = (uint8_t const *)data;
    225     unsigned int control_size, data_size, expected_size, frames, f, n;
     225    size_t control_size, data_size, expected_size;
     226    unsigned int frames, f, n, offset;
    226227    uint16_t version, flags;
    227     unsigned int offset;
    228228    int32_t xmin = 0, ymin = 0, xmax = 0, ymax = 0;
    229229
     
    248248    if(control_size < 16 + frames * 32)
    249249    {
    250         debug("caca import error: control size %lu < expected %lu",
    251               (unsigned long int)control_size, 16 + frames * 32);
     250        debug("caca import error: control size %u < expected %u",
     251              (unsigned int)control_size, 16 + frames * 32);
    252252        goto invalid_caca;
    253253    }
     
    280280    if(expected_size != data_size)
    281281    {
    282         debug("caca import error: data size %lu < expected %lu",
    283               (unsigned long int)data_size, (unsigned long int)expected_size);
     282        debug("caca import error: data size %u < expected %u",
     283              (unsigned int)data_size, (unsigned int)expected_size);
    284284        goto invalid_caca;
    285285    }
Note: See TracChangeset for help on using the changeset viewer.