Skip to content
Snippets Groups Projects
Unverified Commit ef09da58 authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

nix path-info: Hopefully fix macOS build failure

parent e3731a1a
No related branches found
No related tags found
No related merge requests found
......@@ -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()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment