etl/include
Roland Reichwein 0a56d40bdd
Fix undefined behaviour of etl::absolute() for etl::numeric_limits<T>::min (#1333)
absolute_unsigned() already handled that case correctly. Now adding this
check to absolute() also. It can be caught at compile time now, if in a
constexpr context. Also separating integral and non-integral versions
via enable_if.

Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
2026-03-12 16:38:10 +00:00
..
etl Fix undefined behaviour of etl::absolute() for etl::numeric_limits<T>::min (#1333) 2026-03-12 16:38:10 +00:00