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/cucul/transform.c

    r2299 r2305  
    4747{
    4848    uint32_t *attrs = cv->attrs;
    49     unsigned int i;
     49    int i;
    5050
    5151    for(i = cv->height * cv->width; i--; )
     
    7272int cucul_flip(cucul_canvas_t *cv)
    7373{
    74     unsigned int y;
     74    int y;
    7575
    7676    for(y = 0; y < cv->height; y++)
     
    131131int cucul_flop(cucul_canvas_t *cv)
    132132{
    133     unsigned int x;
     133    int x;
    134134
    135135    for(x = 0; x < cv->width; x++)
     
    181181    uint32_t *abegin = cv->attrs;
    182182    uint32_t *aend = abegin + cv->width * cv->height - 1;
    183     unsigned int y;
     183    int y;
    184184
    185185    while(cbegin < cend)
     
    243243{
    244244    uint32_t *newchars, *newattrs;
    245     unsigned int x, y, w2, h2;
     245    int x, y, w2, h2;
    246246
    247247    if(cv->refcount)
     
    360360{
    361361    uint32_t *newchars, *newattrs;
    362     unsigned int x, y, w2, h2;
     362    int x, y, w2, h2;
    363363
    364364    if(cv->refcount)
     
    475475{
    476476    uint32_t *newchars, *newattrs;
    477     unsigned int x, y;
     477    int x, y;
    478478
    479479    if(cv->refcount)
     
    566566{
    567567    uint32_t *newchars, *newattrs;
    568     unsigned int x, y;
     568    int x, y;
    569569
    570570    if(cv->refcount)
Note: See TracChangeset for help on using the changeset viewer.