Fix possible int overflow reported by gcc-4.7
This commit is contained in:
parent
009e93298a
commit
ee2d45164e
|
@ -35,7 +35,7 @@ class Canvas
|
||||||
/**
|
/**
|
||||||
* Define clipping rectangle
|
* 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 */
|
/* calculate left-top and right-bottom points of clipping rectangle */
|
||||||
_clip_x1 = x;
|
_clip_x1 = x;
|
||||||
|
|
Loading…
Reference in New Issue