Commit c15c3109 authored by Evan Ramos's avatar Evan Ramos

Apparently std::abs is not constexpr everywhere

parent fbb13303
......@@ -266,7 +266,7 @@ static FORCE_INLINE int32_t klabs(int32_t const a)
#else
# ifdef __cplusplus
// some toolchains use the double version of abs for small int types, so avoid that
static FORCE_INLINE CONSTEXPR int32_t klabs(int32_t const a) { return abs(a); }
static FORCE_INLINE int32_t klabs(int32_t const a) { return abs(a); }
# else
# define klabs(x) abs(x)
# endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment