nix path-info: Hopefully fix macOS build failure

https://hydra.nixos.org/build/80480356
This commit is contained in:
Eelco Dolstra 2018-08-31 17:30:45 +02:00
parent e3731a1a1f
commit ef09da58f2
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -70,9 +70,9 @@ struct CmdPathInfo : StorePathsCommand, MixJSON
return; return;
} }
static constexpr std::array<char, 9> idents = { static const std::array<char, 9> idents{{
' ', 'K', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y' ' ', 'K', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y'
}; }};
size_t power = 0; size_t power = 0;
double res = value; double res = value;
while (res > 1024 && power < idents.size()) { while (res > 1024 && power < idents.size()) {