From 901434b00fc878cf7167dc923e60dd59be101c4f Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Mon, 14 Nov 2016 10:07:37 +0100 Subject: [PATCH] common: cast precision specifiers to int --- src/odb.c | 2 +- src/tree.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/odb.c b/src/odb.c index acf4dea71..7b194c70f 100644 --- a/src/odb.c +++ b/src/odb.c @@ -1400,7 +1400,7 @@ int git_odb__error_notfound( char oid_str[GIT_OID_HEXSZ + 1]; git_oid_tostr(oid_str, oid_len+1, oid); giterr_set(GITERR_ODB, "Object not found - %s (%.*s)", - message, oid_len, oid_str); + message, (int) oid_len, oid_str); } else giterr_set(GITERR_ODB, "Object not found - %s", message); 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; } -- 2.39.5