eina_tiler: use int size matching Eina_Rectangle internally to avoid overflow

since this code's creation it seems that the internal int size was set to use
short in order to micro-optimize memory usage, while the api function parameters
used Eina_Rectangle which had a larger int size. when initializing the internal
rect struct, this would lead to overflows which resulted in broken tilers which
returned iterators with no valid rects after having valid rects added

test case: run weston-subsurfaces

@fix
This commit is contained in:
Mike Blumenkrantz 2017-04-21 16:14:57 -04:00
parent ea0a3d304a
commit ab67217434
1 changed files with 6 additions and 6 deletions

View File

@ -58,12 +58,12 @@ struct list
struct rect
{
short right;
short bottom;
short left;
short top;
short width;
short height;
int right;
int bottom;
int left;
int top;
int width;
int height;
int area;
};