Skip to content

Commit 901434b

Browse files
committed
common: cast precision specifiers to int
1 parent c77a55a commit 901434b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/odb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1400,7 +1400,7 @@ int git_odb__error_notfound(
14001400
char oid_str[GIT_OID_HEXSZ + 1];
14011401
git_oid_tostr(oid_str, oid_len+1, oid);
14021402
giterr_set(GITERR_ODB, "Object not found - %s (%.*s)",
1403-
message, oid_len, oid_str);
1403+
message, (int) oid_len, oid_str);
14041404
} else
14051405
giterr_set(GITERR_ODB, "Object not found - %s", message);
14061406

src/tree.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ int git_tree_entry_bypath(
917917

918918
if (entry == NULL) {
919919
giterr_set(GITERR_TREE,
920-
"the path '%.*s' does not exist in the given tree", filename_len, path);
920+
"the path '%.*s' does not exist in the given tree", (int) filename_len, path);
921921
return GIT_ENOTFOUND;
922922
}
923923

@@ -927,7 +927,7 @@ int git_tree_entry_bypath(
927927
* then this entry *must* be a tree */
928928
if (!git_tree_entry__is_tree(entry)) {
929929
giterr_set(GITERR_TREE,
930-
"the path '%.*s' exists but is not a tree", filename_len, path);
930+
"the path '%.*s' exists but is not a tree", (int) filename_len, path);
931931
return GIT_ENOTFOUND;
932932
}
933933

0 commit comments

Comments
 (0)