Fix usage of make_unsigned

This commit is contained in:
Roland Reichwein 2026-04-05 22:10:45 +02:00
parent df809faea0
commit 652e718853

View File

@ -567,7 +567,7 @@ namespace etl
// Work with magnitudes in unsigned form (avoids abs() overflow for
// T::min()).
typedef typename std::make_unsigned<T>::type utype;
typedef typename etl::make_unsigned<T>::type utype;
const utype abs_denominator = (denominator < 0) ? (utype(0) - utype(denominator)) : utype(denominator);
const utype abs_remainder = (remainder < 0) ? (utype(0) - utype(remainder)) : utype(remainder);
const utype half_denominator = abs_denominator / 2U;