3 ms·
flag&FLAG_VALUE will be FLAG_VALUE or 0, so unless FLAG_VALUE==TRUE the answer could be wrong. Suggest (flag&FLAG_VALUE), or, if you need the expression to be
by to3m 14y ago
flag&FLAG_VALUE will be FLAG_VALUE or 0, so unless FLAG_VALUE==TRUE the answer could be wrong.
Suggest (flag&FLAG_VALUE), or, if you need the expression to be of type bool, ((flag&FLAG_VALUE)!=0) or (!!(flag&FLAG_VALUE)).
- mpyne 14y agoVery true, I just checked to see if I can edit but I can't, so mea culpa.