forked from lix-project/lix
nix path-info: Hopefully fix macOS build failure
https://hydra.nixos.org/build/80480356
This commit is contained in:
parent
e3731a1a1f
commit
ef09da58f2
|
@ -70,9 +70,9 @@ struct CmdPathInfo : StorePathsCommand, MixJSON
|
|||
return;
|
||||
}
|
||||
|
||||
static constexpr std::array<char, 9> idents = {
|
||||
static const std::array<char, 9> idents{{
|
||||
' ', 'K', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y'
|
||||
};
|
||||
}};
|
||||
size_t power = 0;
|
||||
double res = value;
|
||||
while (res > 1024 && power < idents.size()) {
|
||||
|
|
Loading…
Reference in a new issue