evas font: do floating point division for calculating more accurately
authorYoungbok Shin <youngb.shin@samsung.com>
Wed, 30 Aug 2017 18:40:26 +0000 (11:40 -0700)
committerCedric Bail <cedric@osg.samsung.com>
Wed, 30 Aug 2017 19:06:01 +0000 (12:06 -0700)
commit2b9a2692e8e2f3ed60fdf1e111ea5ffe1dfe0dcf
treed8f9581a82954b16ea8bd07b09459c106c166bcc
parent67d1c0e51c01ba159f88adc6446cc31cee79c808
evas font: do floating point division for calculating more accurately

Summary:
Assigning a result of integral division to a double type variable is
not useful for next division calculation. For more accurate calculation,
it needs to be casted to double before doing division.
It does not fix some bugs. It was reported by a code quality advisor.

Test Plan: N/A

Reviewers: raster, cedric, jpeg, herdsman, eunue

Reviewed By: cedric

Differential Revision: https://phab.enlightenment.org/D5069

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
src/lib/evas/common/evas_font_query.c