diff options
author | Tim Clem <timothy.clem@gmail.com> | 2011-02-14 13:22:44 -0800 |
---|---|---|
committer | Tim Clem <timothy.clem@gmail.com> | 2011-02-14 13:22:44 -0800 |
commit | 81d0ff1ca5db0ab1a3920c96605899c6161467c8 (patch) | |
tree | 0357d43b13dc58ce6422fbbce995b7c80652314b | |
parent | d4b5a4e23a5d6bece88cebb2a53de68eddb4ca68 (diff) | |
download | libgit2-81d0ff1ca5db0ab1a3920c96605899c6161467c8.tar.gz |
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
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | src/git2/tag.h | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore index 9f464e421..ddff317f6 100644 --- a/.gitignore +++ b/.gitignore @@ -18,4 +18,5 @@ msvc/Release/ *.suo
*.user
*.sdf
-*.opensdf
\ No newline at end of file +*.opensdf +.DS_Store diff --git a/src/git2/tag.h b/src/git2/tag.h index e97c2badd..4fd6ea980 100644 --- a/src/git2/tag.h +++ b/src/git2/tag.h @@ -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); } /** |