about summary refs log tree commit diff
path: root/src/libexpr
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-08-26T16·48+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-08-26T16·48+0000
commit8a6080eb1400b9b7414e2ec8b995268315448cb5 (patch)
tree8d0fffcb5f9a15337cb15b37666d2b75ebddd0d0 /src/libexpr
parent4b66cebe7bf1a8c03fb8f1e0052c19e91820c66c (diff)
* Refactoring.
Diffstat (limited to 'src/libexpr')
-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");