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:
parent
e3e3bd7b09
commit
dd5d122bae
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue