diff options
| author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2009-06-14 22:12:20 +0100 |
|---|---|---|
| committer | Andreas Ericsson <ae@op5.se> | 2009-06-15 07:34:28 +0200 |
| commit | 8a086f872a3bb2cf8e437f0e374ea18e5cbaa899 (patch) | |
| tree | c2ef0cadc189a076b8ed0d855da1e58502210507 /src/odb.c | |
| parent | 2bf93fa1071c3df7f43926c8e6c3bd2353d78160 (diff) | |
| download | libgit2-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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! */ |
