diff options
author | Chris Michael <cp.michael@samsung.com> | 2015-01-09 15:26:32 -0500 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2015-01-09 15:26:32 -0500 |
commit | b6f74c0a12e361dc92e2dc6f0917ae57320de3f8 (patch) | |
tree | 03a85ba21d3c6e48bdee29bd12f4ffe00ae71d64 /src | |
parent | 9bf76ddc8aee259da86506087c8743b51c27bdcd (diff) |
evas: Fix unintentional integer overflow
Summary: This fixes CID1261436: unintentional integer overflow
@fix
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/evas/canvas/evas_object_box.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_object_box.c b/src/lib/evas/canvas/evas_object_box.c index c060013395..4f1f6f7b1a 100644 --- a/src/lib/evas/canvas/evas_object_box.c +++ b/src/lib/evas/canvas/evas_object_box.c | |||
@@ -512,7 +512,7 @@ _evas_box_layout_set(Eo *o, Evas_Object_Box_Data *priv, Evas_Object_Box_Layout c | |||
512 | static void | 512 | static void |
513 | _fixed_point_divide_and_decompose_integer(int dividend, int divisor, int *int_part, int *frac_part) | 513 | _fixed_point_divide_and_decompose_integer(int dividend, int divisor, int *int_part, int *frac_part) |
514 | { | 514 | { |
515 | int quotient = (long long)(dividend << 16) / divisor; | 515 | int quotient = ((long long)dividend << 16) / divisor; |
516 | *frac_part = quotient & 0xffff; | 516 | *frac_part = quotient & 0xffff; |
517 | *int_part = quotient >> 16; | 517 | *int_part = quotient >> 16; |
518 | } | 518 | } |