Skip to content

Commit fa1890e

Browse files
Harmonize return type of bitofsign and signbit between scalar and vector version
1 parent 7eb009b commit fa1890e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/xsimd/arch/xsimd_scalar.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -800,9 +800,9 @@ namespace xsimd
800800
}
801801

802802
template <class T, class = typename std::enable_if<std::is_scalar<T>::value>::type>
803-
inline bool bitofsign(T const& x) noexcept
803+
inline T bitofsign(T const& x) noexcept
804804
{
805-
return x < T(0);
805+
return T(x < T(0));
806806
}
807807

808808
template <class T>

0 commit comments

Comments
 (0)