forked from enlightenment/efl
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:
parent
9bf76ddc8a
commit
b6f74c0a12
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue