From ef09da58f2cb592b10c0c3bffff01cf89a5fdb7d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 31 Aug 2018 17:30:45 +0200 Subject: nix path-info: Hopefully fix macOS build failure https://hydra.nixos.org/build/80480356 --- src/nix/path-info.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nix/path-info.cc') diff --git a/src/nix/path-info.cc b/src/nix/path-info.cc index 916ed360e..fbe5f9169 100644 --- a/src/nix/path-info.cc +++ b/src/nix/path-info.cc @@ -70,9 +70,9 @@ struct CmdPathInfo : StorePathsCommand, MixJSON return; } - static constexpr std::array idents = { + static const std::array idents{{ ' ', 'K', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y' - }; + }}; size_t power = 0; double res = value; while (res > 1024 && power < idents.size()) { -- cgit v1.2.3