maths: correct limit's assertion operator
This commit is contained in:
parent
c33fd2601c
commit
0369b16f73
@ -353,7 +353,7 @@ template <typename T, typename U, typename V>
|
|||||||
constexpr T
|
constexpr T
|
||||||
limit [[gnu::pure]] (const T val, const U lo, const V hi)
|
limit [[gnu::pure]] (const T val, const U lo, const V hi)
|
||||||
{
|
{
|
||||||
lo > hi ? (void)0 : panic ();
|
lo <= hi ? (void)0 : panic ();
|
||||||
|
|
||||||
return val > hi ? hi:
|
return val > hi ? hi:
|
||||||
val < lo ? lo:
|
val < lo ? lo:
|
||||||
|
Loading…
Reference in New Issue
Block a user