summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSven Strickroth <email@cs-ware.de>2019-09-25 20:29:21 +0200
committerSven Strickroth <email@cs-ware.de>2019-09-26 08:26:09 +0200
commit452b7f8f4c665d4b2daa257f7f4cf9836c270085 (patch)
treef699cfb4984be6d47e5a5a1ff5e5a14df8e0c531 /src
parent9cd5240edf82b63b883bdf4be3e01db16f635a23 (diff)
downloadlibgit2-452b7f8f4c665d4b2daa257f7f4cf9836c270085.tar.gz
Don't use enum for flags
Using an `enum` causes trouble when used with C++ as bitwise operations are not possible w/o casting (e.g., `opts.flags &= ~GIT_BLOB_FILTER_CHECK_FOR_BINARY;` is invalid as there is no `&=` operator for `enum`). Signed-off-by: Sven Strickroth <email@cs-ware.de>
Diffstat (limited to 'src')
-rw-r--r--src/diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diff.c b/src/diff.c
index 3c6a0f242..15a32ed48 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -323,7 +323,7 @@ int git_diff_commit_as_email(
git_commit *commit,
size_t patch_no,
size_t total_patches,
- git_diff_format_email_flags_t flags,
+ uint32_t flags,
const git_diff_options *diff_opts)
{
git_diff *diff = NULL;