http://llvm.org/bugs/show_bug.cgi?id=21343
Anton <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution|--- |WORKSFORME --- Comment #4 from Anton <[email protected]> --- (In reply to comment #3) > OR is the required operation for the logic you're trying to do. > > You want the loop to stop when (s[tmp_i] == '*' && s[tmp_i + 1] == '/') > right? So you need to loop while the opposite is true. Which would be > !(s[tmp_i] == '*' && s[tmp_i + 1] == '/'). If we apply DeMorgan's law to > propagate the inversion all the way through, we get (s[tmp_i] != '*' || > s[tmp_i + 1] != '/'). Which is what your code has. Thank you very much for exhaustive explanations! -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ LLVMbugs mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
