|
|
|
|
|
by harrytuttle
4653 days ago
|
|
And this is why you write it like this when you use C: (0 == current->uid)
Rather than (current->uid == 0) // or (current->uid = 0) in this case.
Impossible to make an assignment to a numeric lvalue. Easy to spot, easy to audit in a diff. |
|
Sure, if you are in habit of releasing code that compiles with warnings.
This sort of pointless code twisting is intensely annoying. It solves a rare problem with a wrong tool and in a very intrusive way.
Zero is constant. You compare to it.