Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e5f9df7

Browse files
committed
odb: cast to long long for printf
1 parent 6065505 commit e5f9df7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/odb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ static int load_alternates(git_odb *odb, const char *objects_dir, int alternate_
5353
int git_odb__format_object_header(char *hdr, size_t n, git_off_t obj_len, git_otype obj_type)
5454
{
5555
const char *type_str = git_object_type2string(obj_type);
56-
int len = p_snprintf(hdr, n, "%s %lld", type_str, obj_len);
56+
int len = p_snprintf(hdr, n, "%s %lld", type_str, (long long)obj_len);
5757
assert(len > 0 && len <= (int)n);
5858
return len+1;
5959
}

0 commit comments

Comments
 (0)