summaryrefslogtreecommitdiff
path: root/src/odb.c
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2009-06-14 22:12:20 +0100
committerAndreas Ericsson <ae@op5.se>2009-06-15 07:34:28 +0200
commit8a086f872a3bb2cf8e437f0e374ea18e5cbaa899 (patch)
treec2ef0cadc189a076b8ed0d855da1e58502210507 /src/odb.c
parent2bf93fa1071c3df7f43926c8e6c3bd2353d78160 (diff)
downloadlibgit2-8a086f872a3bb2cf8e437f0e374ea18e5cbaa899.tar.gz
win32: Add support for the MS Visual C/C++ compiler
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
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 ea28d017c..6d646a4dd 100644
--- a/src/odb.c
+++ b/src/odb.c
@@ -153,7 +153,7 @@ int git_obj__loose_object_type(git_otype type)
static int format_object_header(char *hdr, size_t n, git_obj *obj)
{
const char *type_str = git_obj_type_to_string(obj->type);
- int len = snprintf(hdr, n, "%s %zu", type_str, obj->len);
+ int len = snprintf(hdr, n, "%s %"PRIuZ, type_str, obj->len);
assert(len > 0); /* otherwise snprintf() is broken */
assert(len < n); /* otherwise the caller is broken! */