about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-08-31T15·30+0200
committerEelco Dolstra <edolstra@gmail.com>2018-08-31T15·30+0200
commitef09da58f2cb592b10c0c3bffff01cf89a5fdb7d (patch)
treec1bb9933ce492af5edaa7c97e97a3f445aeb7577 /src
parente3731a1a1fd3959b3b9b812dfea5ff59dd84216d (diff)
nix path-info: Hopefully fix macOS build failure
https://hydra.nixos.org/build/80480356
Diffstat (limited to 'src')
-rw-r--r--src/nix/path-info.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix/path-info.cc b/src/nix/path-info.cc
index 916ed360e62d..fbe5f91698f1 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<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()) {