Made variables constexpr
This commit is contained in:
parent
1bd49f65fa
commit
f751833a88
4
uart.hpp
4
uart.hpp
@ -39,8 +39,8 @@ static constexpr size_t maxNumDigits()
|
|||||||
constexpr T minVal = util::NumericLimits<T>::min();
|
constexpr T minVal = util::NumericLimits<T>::min();
|
||||||
constexpr T maxVal = util::NumericLimits<T>::max();
|
constexpr T maxVal = util::NumericLimits<T>::max();
|
||||||
|
|
||||||
T minDigits = cntDigits<T, minVal, Base>();
|
constexpr T minDigits = cntDigits<T, MinVal, Base>();
|
||||||
T maxDigits = cntDigits<T, maxVal, Base>();
|
constexpr T maxDigits = cntDigits<T, MaxVal, Base>();
|
||||||
|
|
||||||
return (minDigits < maxDigits) ? maxDigits : minDigits;
|
return (minDigits < maxDigits) ? maxDigits : minDigits;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user