From f751833a889080f7e3097ce2d92bac5674463466 Mon Sep 17 00:00:00 2001 From: BlackMark Date: Sun, 5 Apr 2020 03:25:25 +0200 Subject: [PATCH] Made variables constexpr --- uart.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uart.hpp b/uart.hpp index dc59840..68c2d8b 100644 --- a/uart.hpp +++ b/uart.hpp @@ -39,8 +39,8 @@ static constexpr size_t maxNumDigits() constexpr T minVal = util::NumericLimits::min(); constexpr T maxVal = util::NumericLimits::max(); - T minDigits = cntDigits(); - T maxDigits = cntDigits(); + constexpr T minDigits = cntDigits(); + constexpr T maxDigits = cntDigits(); return (minDigits < maxDigits) ? maxDigits : minDigits; }