From c1f6449394985ab40bb3936e890965ec138aa710 Mon Sep 17 00:00:00 2001 From: caro Date: Sat, 10 Apr 2010 23:23:26 +0000 Subject: [PATCH] explicit cast git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@47907 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/include/eina_inline_f16p16.x | 2 +- src/include/eina_inline_f8p24.x | 2 +- src/include/eina_inline_fp.x | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/include/eina_inline_f16p16.x b/src/include/eina_inline_f16p16.x index f7420ba..e16d188 100644 --- a/src/include/eina_inline_f16p16.x +++ b/src/include/eina_inline_f16p16.x @@ -35,7 +35,7 @@ eina_f16p16_sub(Eina_F16p16 a, Eina_F16p16 b) static inline Eina_F16p16 eina_f16p16_mul(Eina_F16p16 a, Eina_F16p16 b) { - return ((int64_t)a * (int64_t)b) >> 16; + return (Eina_F16p16)(((int64_t)a * (int64_t)b) >> 16); } static inline Eina_F16p16 diff --git a/src/include/eina_inline_f8p24.x b/src/include/eina_inline_f8p24.x index ded0e3b..f80bf61 100644 --- a/src/include/eina_inline_f8p24.x +++ b/src/include/eina_inline_f8p24.x @@ -35,7 +35,7 @@ eina_f8p24_sub(Eina_F8p24 a, Eina_F8p24 b) static inline Eina_F8p24 eina_f8p24_mul(Eina_F8p24 a, Eina_F8p24 b) { - return ((int64_t) a * (int64_t) b) >> 24; + return (Eina_F8p24)(((int64_t) a * (int64_t) b) >> 24); } static inline Eina_F8p24 diff --git a/src/include/eina_inline_fp.x b/src/include/eina_inline_fp.x index ac0a52a..b767b2b 100644 --- a/src/include/eina_inline_fp.x +++ b/src/include/eina_inline_fp.x @@ -29,7 +29,7 @@ eina_f32p32_int_from(int32_t v) static inline int32_t eina_f32p32_int_to(Eina_F32p32 v) { - return v >> 32; + return (int32_t)(v >> 32); } static inline Eina_F32p32 -- 2.7.4