summaryrefslogtreecommitdiff
path: root/src/odb.c
diff options
context:
space:
mode:
authorPierre-Olivier Latour <pol@mac.com>2015-06-02 08:36:15 -0700
committerPierre-Olivier Latour <pol@mac.com>2015-06-02 11:49:38 -0700
commit9f3c18e2ac082454c955761f10f4a0d06390c27f (patch)
tree05ad8c3289df5f6ea3583127db3395aa9314b944 /src/odb.c
parentbe5fda75879f7ed89c7a72adc257872d1ea13803 (diff)
downloadlibgit2-9f3c18e2ac082454c955761f10f4a0d06390c27f.tar.gz
Fixed build warnings on Xcode 6.1
Diffstat (limited to 'src/odb.c')
-rw-r--r--src/odb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/odb.c b/src/odb.c
index deb9d5c82..7a718f5d6 100644
--- a/src/odb.c
+++ b/src/odb.c
@@ -53,7 +53,7 @@ static int load_alternates(git_odb *odb, const char *objects_dir, int alternate_
int git_odb__format_object_header(char *hdr, size_t n, git_off_t obj_len, git_otype obj_type)
{
const char *type_str = git_object_type2string(obj_type);
- int len = p_snprintf(hdr, n, "%s %"PRIuZ, type_str, obj_len);
+ int len = p_snprintf(hdr, n, "%s %lld", type_str, obj_len);
assert(len > 0 && len <= (int)n);
return len+1;
}