0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-30 17:34:04 +01:00

ircd::util: Use long double literals to indicate promotion intent (pedantic).

This commit is contained in:
Jason Volk 2022-06-13 14:46:38 -07:00
parent e3e3bd7b09
commit dd5d122bae

View file

@ -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)