Ignore:
Timestamp:
Apr 23, 2008, 11:24:34 PM (12 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/triangle.c

    r2303 r2313  
    9191{
    9292    int x, y, xmin, xmax, ymin, ymax;
    93     long int xx1, xx2, xa, xb, sl21, sl31, sl32;
     93    int xx1, xx2, xa, xb, sl21, sl31, sl32;
    9494
    9595    /* Bubble-sort y1 <= y2 <= y3 */
     
    110110
    111111    ymin = y1 < 0 ? 0 : y1;
    112     ymax = y3 + 1 < (int)cv->height ? y3 + 1 : (int)cv->height;
     112    ymax = y3 + 1 < cv->height ? y3 + 1 : cv->height;
    113113
    114114    if(ymin < y2)
     
    144144
    145145        xmin = xx1 < 0 ? 0 : xx1;
    146         xmax = xx2 + 1 < (int)cv->width ? xx2 + 1 : (int)cv->width;
     146        xmax = xx2 + 1 < cv->width ? xx2 + 1 : cv->width;
    147147
    148148        for(x = xmin; x < xmax; x++)
Note: See TracChangeset for help on using the changeset viewer.