summaryrefslogtreecommitdiff
path: root/src/diff_generate.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2017-11-30 21:45:27 +0000
committerGitHub <noreply@github.com>2017-11-30 21:45:27 +0000
commit494a2f235fd13de5f927ad64db0b3597569f02b9 (patch)
treeb49b6ccf0cb43d1ac5eaff1561797caa0cc5f0a8 /src/diff_generate.c
parent6cf53e8f98bec69ff4129fbb494b3995c8916389 (diff)
parent5ca3f11592426f80c004cea5beefc0d05f23265b (diff)
downloadlibgit2-494a2f235fd13de5f927ad64db0b3597569f02b9.tar.gz
Merge pull request #4426 from pks-t/pks/diff-flag-set-fix
diff_generate: fix unsetting diff flags
Diffstat (limited to 'src/diff_generate.c')
-rw-r--r--src/diff_generate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diff_generate.c b/src/diff_generate.c
index 6b3fa4fc5..bce2a683b 100644
--- a/src/diff_generate.c
+++ b/src/diff_generate.c
@@ -24,7 +24,7 @@
(((DIFF)->base.opts.flags & (FLAG)) == 0)
#define DIFF_FLAG_SET(DIFF,FLAG,VAL) (DIFF)->base.opts.flags = \
(VAL) ? ((DIFF)->base.opts.flags | (FLAG)) : \
- ((DIFF)->base.opts.flags & ~(VAL))
+ ((DIFF)->base.opts.flags & ~(FLAG))
typedef struct {
struct git_diff base;