Skip to content

Commit

Permalink
Fix building on clang
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Oct 25, 2017
1 parent 82327e3 commit 9971d87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstore/build.cc
Expand Up @@ -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 {};
};
Expand Down

0 comments on commit 9971d87

Please sign in to comment.