diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2019-05-21 12:57:28 +0100 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-06-24 15:00:41 +0100 |
commit | 2375be48309e25178fad67ed4f811b948f748478 (patch) | |
tree | 3235f1ecc901fa38723f74a8ccaffba873811c74 /include | |
parent | ad6f2153ed06405477704f4f0eefe08ab0c0d807 (diff) | |
download | libgit2-2375be48309e25178fad67ed4f811b948f748478.tar.gz |
tree: return `size_t` for treebuilder entrycount
We keep the treebuilder entrycount as a `size_t` - return that instead
of downcasting to an `unsigned int`. Callers who were storing this
value in an `unsigned int` will continue to downcast themselves, so
there should be no behavior change for callers.
Diffstat (limited to 'include')
-rw-r--r-- | include/git2/tree.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/git2/tree.h b/include/git2/tree.h index aca5d75ed..4455d2e73 100644 --- a/include/git2/tree.h +++ b/include/git2/tree.h @@ -267,7 +267,7 @@ GIT_EXTERN(void) git_treebuilder_clear(git_treebuilder *bld); * @param bld a previously loaded treebuilder. * @return the number of entries in the treebuilder */ -GIT_EXTERN(unsigned int) git_treebuilder_entrycount(git_treebuilder *bld); +GIT_EXTERN(size_t) git_treebuilder_entrycount(git_treebuilder *bld); /** * Free a tree builder |