From 3ef358909eb7e26ca9630e61c7ba142d9e94389e Mon Sep 17 00:00:00 2001 From: Michiharu Ariza Date: Wed, 3 Oct 2018 18:08:25 -0700 Subject: [PATCH] fixed warnings --- src/hb-cff-interp-common.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-cff-interp-common.hh b/src/hb-cff-interp-common.hh index c15336dea..538f9877b 100644 --- a/src/hb-cff-interp-common.hh +++ b/src/hb-cff-interp-common.hh @@ -223,7 +223,7 @@ struct Number if (is_fixed ()) return u.fixed_val; else if (is_real ()) - return (int32_t)(u.real_val * 65536.0); + return (int32_t)((double)u.real_val * 65536.0); else return (int32_t)(u.int_val << 16); } @@ -233,7 +233,7 @@ struct Number if (is_real ()) return u.real_val; if (is_fixed ()) - return u.fixed_val / 65536.0; + return (float)((double)u.fixed_val / 65536.0); else return (float)u.int_val; }