Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It likes if ( (x = y) && p ) return -1;

(No, I don't have the exact statement in question handy. It was more complicated than this example.)



Yes, and that is because "(x == y) && p" should be written as"x == y && p" according to gcc. If you add the brackets gcc takes that as a sign that you really wanted to do an assignment.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: