From 3a6faca98f1d8ecabdd09a3f5d611fed127462e7 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 19 Apr 2016 14:49:17 +1000 Subject: [PATCH] maths: use structured assertions in imit --- maths.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maths.hpp b/maths.hpp index fb48a823..0448e2ba 100644 --- a/maths.hpp +++ b/maths.hpp @@ -486,7 +486,7 @@ namespace util { constexpr T limit (const T val, const U lo, const V hi) { - lo <= hi ? (void)0 : panic (); + CHECK_LE (lo, hi); return val > hi ? hi: val < lo ? lo: