aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-10-25 17:20:47 +0200
committerEelco Dolstra <edolstra@gmail.com>2017-10-25 17:20:47 +0200
commit9971d875a462bc393724220f468825eca9e5c38a (patch)
tree77f0d78a98076f7ad301b59362148332d79227d8
parent82327e3cc474be3c72a22480ad6e219f072e27e0 (diff)
Fix building on clang
https://hydra.nixos.org/build/62945761
-rw-r--r--src/libstore/build.cc4
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 {};
};