suggest parentheses around 这个C语言警告是什么意思?
if( MacEntirely == (MacEntirely&nSwitchState) )
{
\\
}
MacEntirely 是一个宏。
#define MacEntirely 0x8
nSwitchState 是一个int型的变量。
上面的代码编译时出现警告:
"switchstrategy.cpp", line 628: warning #4259-D: suggest parentheses around
the operands of "=="
if( MacEntirely == MacEntirely&nSwitchState )
我想问下这个警告是什么意思?需要如何修改?谢谢。
[解决办法]
就是那个0x8最好有个括号的意思。