diff options
author | nulltoken <emeric.fermas@gmail.com> | 2012-07-24 07:57:58 +0200 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-07-24 16:10:12 +0200 |
commit | b8457baae24269c9fb777591e2a0e1b425ba31b6 (patch) | |
tree | 777a98dbd74f4906ac2faf0042e5118578196db7 /include/git2/index.h | |
parent | 944d250f964698b33d9fa09e2e6af74b1dd84de2 (diff) | |
download | libgit2-b8457baae24269c9fb777591e2a0e1b425ba31b6.tar.gz |
portability: Improve x86/amd64 compatibility
Diffstat (limited to 'include/git2/index.h')
-rw-r--r-- | include/git2/index.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/git2/index.h b/include/git2/index.h index f863a6065..0093330e2 100644 --- a/include/git2/index.h +++ b/include/git2/index.h @@ -279,7 +279,7 @@ GIT_EXTERN(int) git_index_remove(git_index *index, int position); * @param n the position of the entry * @return a pointer to the entry; NULL if out of bounds */ -GIT_EXTERN(git_index_entry *) git_index_get(git_index *index, unsigned int n); +GIT_EXTERN(git_index_entry *) git_index_get(git_index *index, size_t n); /** * Get the count of entries currently in the index @@ -319,7 +319,7 @@ GIT_EXTERN(const git_index_entry_unmerged *) git_index_get_unmerged_bypath(git_i * @param n the position of the entry * @return a pointer to the unmerged entry; NULL if out of bounds */ -GIT_EXTERN(const git_index_entry_unmerged *) git_index_get_unmerged_byindex(git_index *index, unsigned int n); +GIT_EXTERN(const git_index_entry_unmerged *) git_index_get_unmerged_byindex(git_index *index, size_t n); /** * Return the stage number from a git index entry |