Merge branch 'rs/logical-vs-binary-or' into maint
* rs/logical-vs-binary-or: use logical OR (||) instead of binary OR (|) in logical context
This commit is contained in:
@ -3525,7 +3525,7 @@ static int check_patch(struct patch *patch)
|
||||
ok_if_exists = 0;
|
||||
|
||||
if (new_name &&
|
||||
((0 < patch->is_new) | (0 < patch->is_rename) | patch->is_copy)) {
|
||||
((0 < patch->is_new) || patch->is_rename || patch->is_copy)) {
|
||||
int err = check_to_create(new_name, ok_if_exists);
|
||||
|
||||
if (err && threeway) {
|
||||
|
Reference in New Issue
Block a user