Merge branch 'rs/logical-vs-binary-or' into maint
[gitweb.git] / builtin / apply.c
index 3979f8bf3de8bc82b1d546f063728094d6ac974b..0e9b631db6db422b1e938d6168b608e0a2ae8618 100644 (file)
@@ -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) {