Skip to content

Commit 3cc3e25

Browse files
MikeJerredehuss
authored andcommitted
fix: type mismatch error
1 parent e1e933b commit 3cc3e25

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libgit2-sys/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1368,7 +1368,7 @@ pub struct git_merge_file_options {
13681368
pub our_label: *const c_char,
13691369
pub their_label: *const c_char,
13701370
pub favor: git_merge_file_favor_t,
1371-
pub flags: git_merge_file_flag_t,
1371+
pub flags: u32,
13721372
pub marker_size: c_ushort,
13731373
}
13741374

src/merge.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,9 @@ impl MergeFileOptions {
282282

283283
fn flag(&mut self, opt: raw::git_merge_file_flag_t, val: bool) -> &mut MergeFileOptions {
284284
if val {
285-
self.raw.flags |= opt;
285+
self.raw.flags |= opt as u32;
286286
} else {
287-
self.raw.flags &= !opt;
287+
self.raw.flags &= !opt as u32;
288288
}
289289
self
290290
}

0 commit comments

Comments
 (0)