From 60bd3086cc826664a46fc7e703a11e6518482e01 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Sun, 26 Jul 2020 12:56:13 +1000 Subject: srcclean for 0.223 --- src/lib/netlist/plib/pmath.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/netlist/plib/pmath.h') diff --git a/src/lib/netlist/plib/pmath.h b/src/lib/netlist/plib/pmath.h index a86e3d354f1..02d634529a0 100644 --- a/src/lib/netlist/plib/pmath.h +++ b/src/lib/netlist/plib/pmath.h @@ -442,8 +442,8 @@ namespace plib template constexpr const T& clamp( const T& v, const T& low, const T& high) { - gsl_Expects(high >= low); - return (v < low) ? low : (high < v) ? high : v; + gsl_Expects(high >= low); + return (v < low) ? low : (high < v) ? high : v; } static_assert(noexcept(constants::one()), "Not evaluated as constexpr"); -- cgit v1.2.3-70-g09d2