gcc warning compiling C code
What does "warning: `or' of unmatched not-equal tests is always 1" mean?
That is the warning generated by gcc. In particular, what is "always 1" or "unmatched" about if ( (!((x>>(BITS*i))&MASK)) || (((x>>(BITS*i))&MASK) == MASK) ) { if (d) h++; else nh++; } else { if (d) f++; else nf++; } |
I assume it's because of what BITS or MASK are set to. What's the rest of that function look like? And what are BITS and MASK set to?
|
Yep, that was it. I naively supposed there was something "unmatched"; that threw me off.
Thanks |
All times are GMT -5. The time now is 09:06 PM. |