summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAli Saidi <Ali.Saidi@ARM.com>2012-05-10 18:04:27 -0500
committerAli Saidi <Ali.Saidi@ARM.com>2012-05-10 18:04:27 -0500
commitda10fbf5ca53313e20b19457fad780bd6c8930b2 (patch)
tree3b51cf8661c5ce03c50115a33d6774b2c0b1e14c /src
parent8cee4dacc83bdea41563272449442bd322ca786f (diff)
downloadgem5-da10fbf5ca53313e20b19457fad780bd6c8930b2.tar.xz
base: fix a invalid ?: operator
Diffstat (limited to 'src')
-rw-r--r--src/base/output.cc2
1 files changed, 1 insertions, 1 deletions
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;