mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 18:56:29 +00:00
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
|
||||
*/
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user