Changing something to something else you just wanted to compare with something else is never funny.
Changing something to something else you just wanted to compare with something else is never funny.
Oh actually I missed that. nice.
Oh actually I missed that. nice.
I'm not even sure it would compile to begin with
I'm not even sure it would compile to begin with
If it's C, you'd typically get a warning. But using the result of an assignment like that is a valid statement.
I'd never write if (blah == true), though. It's just if(blah).
Usually where people screw up is if(x = y) where neither x nor y are bools.
If it's C, you'd typically get a warning. But using the result of an assignment like that is a valid statement.
I'd never write if (blah == true), though. It's just if(blah).
Usually where people screw up is if(x = y) where neither x nor y are bools.
(post is archived)