summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rebase.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rebase.c b/src/rebase.c
index a4e9bade7..a27ecabc3 100644
--- a/src/rebase.c
+++ b/src/rebase.c
@@ -204,7 +204,7 @@ static int rebase_open_merge(git_rebase *rebase)
git_buf_clear(&cmt);
if ((error = git_buf_printf(&cmt, "cmt.%" PRIuZ, (i+1))) < 0 ||
- (error = rebase_readoid(&operation->id, &buf, &state_path, cmt.ptr)) < 0)
+ (error = rebase_readoid((git_oid *)&operation->id, &buf, &state_path, cmt.ptr)) < 0)
goto done;
}
@@ -549,7 +549,7 @@ static int rebase_init_operations(
operation = git_array_alloc(rebase->operations);
operation->type = GIT_REBASE_OPERATION_PICK;
- git_oid_cpy(&operation->id, &id);
+ git_oid_cpy((git_oid *)&operation->id, &id);
}
error = 0;