base: fix a invalid ?: operator
This commit is contained in:
parent
8cee4dacc8
commit
da10fbf5ca
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue