fixed implicit (but wrong) operator precedence

This commit is contained in:
unknown 2015-11-11 12:32:49 -05:00
parent 2206ba0985
commit d9ef1cae17
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ bool CFile::Open(const char * lpszFileName, uint32_t nOpenFlags)
ULONG dwCreateFlag = 0; ULONG dwCreateFlag = 0;
if (nOpenFlags & modeCreate) if (nOpenFlags & modeCreate)
{ {
dwCreateFlag = nOpenFlags & modeNoTruncate != 0 ? OPEN_ALWAYS : CREATE_ALWAYS; dwCreateFlag = (nOpenFlags & modeNoTruncate) != 0 ? OPEN_ALWAYS : CREATE_ALWAYS;
} }
else else
{ {