From dd5d122baec22488b348e68d6ed5347d44ed733f Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 13 Jun 2022 14:46:38 -0700 Subject: [PATCH] ircd::util: Use long double literals to indicate promotion intent (pedantic). --- ircd/util.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ircd/util.cc b/ircd/util.cc index 287738934..25d157f06 100644 --- a/ircd/util.cc +++ b/ircd/util.cc @@ -225,7 +225,7 @@ ircd::util::si(const uint64_t &value) auto pos(0); long double v(value); - for(; v > 1000.0; v /= 1000.0, ++pos); + for(; v > 1000.0L; v /= 1000.0L, ++pos); return { value, v, unit.at(pos) @@ -242,7 +242,7 @@ ircd::util::iec(const uint64_t &value) auto pos(0); long double v(value); - for(; v > 1024.0; v /= 1024.0, ++pos); + for(; v > 1024.0L; v /= 1024.0L, ++pos); return { value, v, unit.at(pos)