diff options
author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | 2013-06-13 20:19:44 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-06-13 14:47:07 -0700 |
commit | 0b437a18bdd188794cec8855e2a413921d08b6e8 (patch) | |
tree | 7405fbdab450ad716441275c51cf7c2e831e02ce /lockfile.c | |
parent | Merge branch 'maint-1.8.2' into maint (diff) | |
download | tgif-0b437a18bdd188794cec8855e2a413921d08b6e8.tar.xz |
use logical OR (||) instead of binary OR (|) in logical context
The compiler can short-circuit the evaluation of conditions strung
together with logical OR operators instead of computing the resulting
bitmask with binary ORs. More importantly, this patch makes the
intent of the changed code clearer, because the logical context (as
opposed to binary context) becomes immediately obvious.
While we're at it, simplify the check for patch->is_rename in
builtin/apply.c a bit; it can only be 0 or 1, so we don't need a
comparison operator.
Signed-off-by: René Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'lockfile.c')
0 files changed, 0 insertions, 0 deletions