summaryrefslogtreecommitdiff
path: root/src/tree.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2016-11-14 10:07:37 +0100
committerPatrick Steinhardt <ps@pks.im>2016-11-14 10:07:55 +0100
commit901434b00fc878cf7167dc923e60dd59be101c4f (patch)
treecf45e0ae3f1e3dcb1855793e8e55c3fd2a346f70 /src/tree.c
parentc77a55a917c60bc052d8702d4c3e170b0b5fe964 (diff)
downloadlibgit2-901434b00fc878cf7167dc923e60dd59be101c4f.tar.gz
common: cast precision specifiers to int
Diffstat (limited to 'src/tree.c')
-rw-r--r--src/tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tree.c b/src/tree.c
index 6008a9544..e338acca0 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -917,7 +917,7 @@ int git_tree_entry_bypath(
if (entry == NULL) {
giterr_set(GITERR_TREE,
- "the path '%.*s' does not exist in the given tree", filename_len, path);
+ "the path '%.*s' does not exist in the given tree", (int) filename_len, path);
return GIT_ENOTFOUND;
}
@@ -927,7 +927,7 @@ int git_tree_entry_bypath(
* then this entry *must* be a tree */
if (!git_tree_entry__is_tree(entry)) {
giterr_set(GITERR_TREE,
- "the path '%.*s' exists but is not a tree", filename_len, path);
+ "the path '%.*s' exists but is not a tree", (int) filename_len, path);
return GIT_ENOTFOUND;
}