about summary refs log tree commit diff
path: root/src/libexpr/primops.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libexpr/primops.cc')
-rw-r--r--src/libexpr/primops.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index 50712a72513a..9fbab559ea35 100644
--- a/src/libexpr/primops.cc
+++ b/src/libexpr/primops.cc
@@ -146,12 +146,7 @@ static void processBinding(EvalState & state, Expr e, Derivation & drv,
     else if (matchUri(e, s)) ss.push_back(aterm2String(s));
     else if (e == eTrue) ss.push_back("1");
     else if (e == eFalse) ss.push_back("");
-
-    else if (matchInt(e, n)) {
-        ostringstream st;
-        st << n;
-        ss.push_back(st.str());
-    }
+    else if (matchInt(e, n)) ss.push_back(int2String(n));
 
     else if (matchAttrs(e, es)) {
         Expr a = queryAttr(e, "type");