about summary refs log tree commit diff
diff options
context:
space:
mode:
-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 4454aaec452f..35b9cae00b7c 100644
--- a/src/libexpr/eval.cc
+++ b/src/libexpr/eval.cc
@@ -348,7 +348,7 @@ Expr evalExpr2(EvalState & state, Expr e)
             return makeString(s1 + s2);
         else if (atMatch(m, e1) >> "Path" >> s1 &&
             atMatch(m, e2) >> "Path" >> s2)
-            return makeString(canonPath(s1 + "/" + s2));
+            return makePath(canonPath(s1 + "/" + s2));
         else throw Error("wrong argument types in `+' operator");
     }