summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2014-12-22 18:42:03 -0600
committerEdward Thomson <ethomson@microsoft.com>2014-12-22 18:42:03 -0600
commit2fe8157e1b603e0353fd991f3d129b49d35bed99 (patch)
treef405ae0cf29a8efcc71533d55d4e95dc1bce1308 /include
parent0bb237ed89a6700a1b6b884444ff044fd1467535 (diff)
downloadlibgit2-2fe8157e1b603e0353fd991f3d129b49d35bed99.tar.gz
index: reuc and name entrycounts should be size_t
For the REUC and NAME entries, we use size_t internally, and we take size_t for the get_byindex() functions, but the entrycount() functions strangely cast to an unsigned int instead.
Diffstat (limited to 'include')
-rw-r--r--include/git2/sys/index.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/git2/sys/index.h b/include/git2/sys/index.h
index 1a06a4df1..29a99f798 100644
--- a/include/git2/sys/index.h
+++ b/include/git2/sys/index.h
@@ -42,7 +42,7 @@ typedef struct git_index_reuc_entry {
* @param index an existing index object
* @return integer of count of current filename conflict entries
*/
-GIT_EXTERN(unsigned int) git_index_name_entrycount(git_index *index);
+GIT_EXTERN(size_t) git_index_name_entrycount(git_index *index);
/**
* Get a filename conflict entry from the index.
@@ -90,7 +90,7 @@ GIT_EXTERN(void) git_index_name_clear(git_index *index);
* @param index an existing index object
* @return integer of count of current resolve undo entries
*/
-GIT_EXTERN(unsigned int) git_index_reuc_entrycount(git_index *index);
+GIT_EXTERN(size_t) git_index_reuc_entrycount(git_index *index);
/**
* Finds the resolve undo entry that points to the given path in the Git