summaryrefslogtreecommitdiff
path: root/src/odb.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2015-06-29 21:45:04 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2015-06-29 21:45:04 +0000
commite5f9df7b0f754c90c35c8cad72e814adbb2657ac (patch)
tree80e4958b3475a6ce9af0647cdbe3b1ff8d5d1d61 /src/odb.c
parent60655056672d28d88b246ecc97ba4b5a6e1dcdf4 (diff)
downloadlibgit2-e5f9df7b0f754c90c35c8cad72e814adbb2657ac.tar.gz
odb: cast to long long for printf
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 7a718f5d6..b2d635109 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 %lld", type_str, obj_len);
+ int len = p_snprintf(hdr, n, "%s %lld", type_str, (long long)obj_len);
assert(len > 0 && len <= (int)n);
return len+1;
}