Details
Details
- Reviewers
fuz delphij - Commits
- rGabcb80f46c26: diff3: Use logical-not, not bitwise for booleans
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
incompat is actually an int that's incremented, so is not necessarily 0/1. explicitly compare != 0
leave bitwise & in place as that's what's still in the upstream GNU diff3
| contrib/diff/src/diff3.c | ||
|---|---|---|
| 304 | This changes the semantics if incompat is neither 0 nor 1. Could have been a bug before, but could also be intentional. | |
Comment Actions
I
| contrib/diff/src/diff3.c | ||
|---|---|---|
| 304 | It was a bug; as the comment suggests any of the options AeExX3 without m should imply edscript. incompat is incremented for each of these options. Upstream has this fixed in a different way. | |