fixed implicit (but wrong) operator precedence
This commit is contained in:
parent
2206ba0985
commit
d9ef1cae17
|
@ -82,7 +82,7 @@ bool CFile::Open(const char * lpszFileName, uint32_t nOpenFlags)
|
|||
ULONG dwCreateFlag = 0;
|
||||
if (nOpenFlags & modeCreate)
|
||||
{
|
||||
dwCreateFlag = nOpenFlags & modeNoTruncate != 0 ? OPEN_ALWAYS : CREATE_ALWAYS;
|
||||
dwCreateFlag = (nOpenFlags & modeNoTruncate) != 0 ? OPEN_ALWAYS : CREATE_ALWAYS;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue