Skip to content

Commit e2eaa46

Browse files
committed
Fix compile warning
1 parent 9534ae8 commit e2eaa46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commit.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ Commit_gpg_signature__get__(Commit *commit)
7373
git_buf gpg_signature = { NULL }, signed_data = { NULL };
7474
PyObject *py_gpg_signature, *py_signed_data;
7575

76-
git_oid *oid = git_commit_id(commit->commit);
76+
const git_oid *oid = git_commit_id(commit->commit);
7777
int err = git_commit_extract_signature(
78-
&gpg_signature, &signed_data, commit->repo->repo, oid, NULL
78+
&gpg_signature, &signed_data, commit->repo->repo, (git_oid*) oid, NULL
7979
);
8080

8181
if (err != GIT_OK){

0 commit comments

Comments
 (0)