mirror of
https://github.com/NixOS/nix
synced 2025-06-26 07:31:15 +02:00
int2String() -> std::to_string()
This commit is contained in:
parent
71039becd1
commit
5c28943e8f
9 changed files with 17 additions and 24 deletions
|
@ -1392,7 +1392,7 @@ string EvalState::coerceToString(const Pos & pos, Value & v, PathSet & context,
|
|||
shell scripting convenience, just like `null'. */
|
||||
if (v.type == tBool && v.boolean) return "1";
|
||||
if (v.type == tBool && !v.boolean) return "";
|
||||
if (v.type == tInt) return int2String(v.integer);
|
||||
if (v.type == tInt) return std::to_string(v.integer);
|
||||
if (v.type == tNull) return "";
|
||||
|
||||
if (v.isList()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue