diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-10-25 17:20:47 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-10-25 17:20:47 +0200 |
commit | 9971d875a462bc393724220f468825eca9e5c38a (patch) | |
tree | 77f0d78a98076f7ad301b59362148332d79227d8 /src/libstore | |
parent | 82327e3cc474be3c72a22480ad6e219f072e27e0 (diff) |
Fix building on clang
https://hydra.nixos.org/build/62945761
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/build.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 51afbac7f..9f8edc826 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -2400,10 +2400,10 @@ void DerivationGoal::writeStructuredAttrs() } if (value.is_null()) - return "''"; + return std::string("''"); if (value.is_boolean()) - return value.get<bool>() ? "1" : ""; + return value.get<bool>() ? std::string("1") : std::string(""); return {}; }; |