Ticket #3171: float_warnings.patch
File float_warnings.patch, 2.0 KB (added by , 13 years ago) |
---|
-
detail/float_functions.hpp
130 130 template <typename T> \ 131 131 inline type1 operator()(type1 a, T b) const \ 132 132 { \ 133 return c99_func(a, b);\133 return static_cast<type1>(c99_func(a, b)); \ 134 134 } \ 135 135 }; \ 136 136 \ … … 147 147 template <typename T> \ 148 148 inline type1 operator()(type1 a, T b) const \ 149 149 { \ 150 return cpp_func(a, b);\150 return static_cast<type1>(cpp_func(a, b)); \ 151 151 } \ 152 152 }; \ 153 153 } \ … … 168 168 struct call_##cpp_func<type1> { \ 169 169 typedef type1 float_type; \ 170 170 inline type1 operator()(type1 x, type2 y) const { \ 171 return c99_func(x, y);\171 return static_cast<type1>(c99_func(x, y)); \ 172 172 } \ 173 173 }; \ 174 174 } \