Fix possible int overflow reported by gcc-4.7

This commit is contained in:
Norman Feske 2012-11-01 16:48:08 +01:00
parent 009e93298a
commit ee2d45164e
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class Canvas
/**
* Define clipping rectangle
*/
void clip(int x, int y, int w, int h)
void clip(int x, int y, unsigned w, unsigned h)
{
/* calculate left-top and right-bottom points of clipping rectangle */
_clip_x1 = x;