summaryrefslogtreecommitdiff
path: root/boost/math/special_functions/sign.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/math/special_functions/sign.hpp')
-rw-r--r--boost/math/special_functions/sign.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/boost/math/special_functions/sign.hpp b/boost/math/special_functions/sign.hpp
index 3324c90a87..5cb21bac54 100644
--- a/boost/math/special_functions/sign.hpp
+++ b/boost/math/special_functions/sign.hpp
@@ -27,7 +27,7 @@ namespace detail {
template<class T>
inline int signbit_impl(T x, native_tag const&)
{
- return (std::signbit)(x);
+ return (std::signbit)(x) ? 1 : 0;
}
#endif