aboutsummaryrefslogtreecommitdiff
path: root/build/context.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-03-02 08:54:00 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-03-02 08:54:00 +0200
commitbbd05eb0c32a9614f012a1d9b75cef736a1d4150 (patch)
tree590d19b96061666eeadf6ae36b907e05f6b79609 /build/context.cxx
parent4372f041bb7401c3adc2d5710566b13f64722102 (diff)
Clean up clang warnings
Diffstat (limited to 'build/context.cxx')
-rw-r--r--build/context.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/context.cxx b/build/context.cxx
index 79753ec..f7c9650 100644
--- a/build/context.cxx
+++ b/build/context.cxx
@@ -43,8 +43,8 @@ namespace build
// If work is a sub-path of {src,out}_root and this path is also a
// sub-bath of it, then use '..' to form a relative path.
//
- if (work.sub (src_root) && p.sub (src_root) ||
- work.sub (out_root) && p.sub (out_root)) // @@ cache
+ if ((work.sub (src_root) && p.sub (src_root)) ||
+ (work.sub (out_root) && p.sub (out_root))) // @@ cache
return p.relative (work);
return p;