mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-21 10:34:05 +00:00
common: cast precision specifiers to int
This commit is contained in:
parent
c77a55a917
commit
901434b00f
@ -1400,7 +1400,7 @@ int git_odb__error_notfound(
|
|||||||
char oid_str[GIT_OID_HEXSZ + 1];
|
char oid_str[GIT_OID_HEXSZ + 1];
|
||||||
git_oid_tostr(oid_str, oid_len+1, oid);
|
git_oid_tostr(oid_str, oid_len+1, oid);
|
||||||
giterr_set(GITERR_ODB, "Object not found - %s (%.*s)",
|
giterr_set(GITERR_ODB, "Object not found - %s (%.*s)",
|
||||||
message, oid_len, oid_str);
|
message, (int) oid_len, oid_str);
|
||||||
} else
|
} else
|
||||||
giterr_set(GITERR_ODB, "Object not found - %s", message);
|
giterr_set(GITERR_ODB, "Object not found - %s", message);
|
||||||
|
|
||||||
|
@ -917,7 +917,7 @@ int git_tree_entry_bypath(
|
|||||||
|
|
||||||
if (entry == NULL) {
|
if (entry == NULL) {
|
||||||
giterr_set(GITERR_TREE,
|
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;
|
return GIT_ENOTFOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -927,7 +927,7 @@ int git_tree_entry_bypath(
|
|||||||
* then this entry *must* be a tree */
|
* then this entry *must* be a tree */
|
||||||
if (!git_tree_entry__is_tree(entry)) {
|
if (!git_tree_entry__is_tree(entry)) {
|
||||||
giterr_set(GITERR_TREE,
|
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;
|
return GIT_ENOTFOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user