evas: Fix unintentional integer overflow

Summary: This fixes CID1261436: unintentional integer overflow

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-01-09 15:26:32 -05:00
parent 9bf76ddc8a
commit b6f74c0a12
1 changed files with 1 additions and 1 deletions

View File

@ -512,7 +512,7 @@ _evas_box_layout_set(Eo *o, Evas_Object_Box_Data *priv, Evas_Object_Box_Layout c
static void
_fixed_point_divide_and_decompose_integer(int dividend, int divisor, int *int_part, int *frac_part)
{
int quotient = (long long)(dividend << 16) / divisor;
int quotient = ((long long)dividend << 16) / divisor;
*frac_part = quotient & 0xffff;
*int_part = quotient >> 16;
}