about summary refs log tree commit diff
path: root/src/libexpr
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-10-29T12·26+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-10-29T12·26+0100
commit5c28943e8fd19d7eb55865d45d6dc61336aa04e9 (patch)
tree23027f6e306f2563558643cf5d584394d88429d4 /src/libexpr
parent71039becd11f5df4173692508dcb0ad36327c5fa (diff)
int2String() -> std::to_string()
Diffstat (limited to 'src/libexpr')
-rw-r--r--src/libexpr/eval.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc
index fb96e8b4d78f..acf1fbdc1356 100644
--- a/src/libexpr/eval.cc
+++ b/src/libexpr/eval.cc
@@ -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()) {