mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-02 17:42:31 +00:00
fix cast in tag.h
git_tag_lookup() and git_tag_new() changed to cast GIT_OBJ_TAG to git_otype in order to compile lib in xcode
This commit is contained in:
parent
d4b5a4e23a
commit
81d0ff1ca5
3
.gitignore
vendored
3
.gitignore
vendored
@ -18,4 +18,5 @@ msvc/Release/
|
||||
*.suo
|
||||
*.user
|
||||
*.sdf
|
||||
*.opensdf
|
||||
*.opensdf
|
||||
.DS_Store
|
||||
|
@ -51,7 +51,7 @@ GIT_BEGIN_DECL
|
||||
*/
|
||||
GIT_INLINE(int) git_tag_lookup(git_tag **tag, git_repository *repo, const git_oid *id)
|
||||
{
|
||||
return git_repository_lookup((git_object **)tag, repo, id, GIT_OBJ_TAG);
|
||||
return git_repository_lookup((git_object **)tag, repo, id, (git_otype)GIT_OBJ_TAG);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -67,7 +67,7 @@ GIT_INLINE(int) git_tag_lookup(git_tag **tag, git_repository *repo, const git_oi
|
||||
*/
|
||||
GIT_INLINE(int) git_tag_new(git_tag **tag, git_repository *repo)
|
||||
{
|
||||
return git_repository_newobject((git_object **)tag, repo, GIT_OBJ_TAG);
|
||||
return git_repository_newobject((git_object **)tag, repo, (git_otype)GIT_OBJ_TAG);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user