From: Ali Saidi Date: Thu, 10 May 2012 23:04:27 +0000 (-0500) Subject: base: fix a invalid ?: operator X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=da10fbf5ca53313e20b19457fad780bd6c8930b2;p=gem5.git base: fix a invalid ?: operator --- diff --git a/src/base/output.cc b/src/base/output.cc index 1c749e5bf..ee2e196ed 100644 --- a/src/base/output.cc +++ b/src/base/output.cc @@ -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;