]> git.proxmox.com Git - libgit2.git/commitdiff
fix cast in tag.h
authorTim Clem <timothy.clem@gmail.com>
Mon, 14 Feb 2011 21:22:44 +0000 (13:22 -0800)
committerTim Clem <timothy.clem@gmail.com>
Mon, 14 Feb 2011 21:22:44 +0000 (13:22 -0800)
git_tag_lookup() and git_tag_new() changed to cast GIT_OBJ_TAG to
git_otype in order to compile lib in xcode

.gitignore
src/git2/tag.h

index 9f464e421784d00b50cdbb61cc446c0d725f7834..ddff317f6c4901806a0669c0994484ac400b5b32 100644 (file)
@@ -18,4 +18,5 @@ msvc/Release/
 *.suo\r
 *.user\r
 *.sdf\r
-*.opensdf
\ No newline at end of file
+*.opensdf
+.DS_Store
index e97c2badd5f07a66f9be976cf4d8688ebfd424df..4fd6ea980b4f9a5e13ed8aca10990feee4a9aa0d 100644 (file)
@@ -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);
 }
 
 /**