base: fix a invalid ?: operator
authorAli Saidi <Ali.Saidi@ARM.com>
Thu, 10 May 2012 23:04:27 +0000 (18:04 -0500)
committerAli Saidi <Ali.Saidi@ARM.com>
Thu, 10 May 2012 23:04:27 +0000 (18:04 -0500)
src/base/output.cc

index 1c749e5bf592ec98bfdc54810fcf60495a1bb245..ee2e196ed0b9d5f85052c2e330700b1dd81d3e12 100644 (file)
@@ -160,7 +160,7 @@ OutputDirectory::create(const string &name, bool binary)
 
     string filename = resolve(name);
     ios_base::openmode mode =
-        ios::trunc | binary ?  ios::binary : (ios::openmode)0;
+        ios::trunc | (binary ? ios::binary : (ios::openmode)0);
     file = openFile(filename, mode);
 
     return file;