From 0369b16f738b4d52db6137107eeff0fee13b8182 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 29 Oct 2015 18:22:28 +1100 Subject: [PATCH] maths: correct limit's assertion operator --- maths.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maths.hpp b/maths.hpp index 9a15aae8..7ba92083 100644 --- a/maths.hpp +++ b/maths.hpp @@ -353,7 +353,7 @@ template constexpr T 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: val < lo ? lo: