Closed daym closed 10 years ago
why is it a typo?? Logical Or Operator = || Bitwise Or Operator = |
i think the logical should be used
why is it a typo??
(~) is a bitwise operator (which does inversion). It makes little sense to mix bitwise (~) and logical (||) in that fashion.
Also, doing &~(a|b) is a common idiom to clear the stated flags while &~(a||b) is senseless (would always clear bit 0 - if a or b is not equal to 0, which is the case).
i think the logical should be used
Why do you think that?
daym seems to be right. fixed with 1a41433da20b660aff71546ba235009f14b088e7
Fixed by