Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
e5f9df7b
Commit
e5f9df7b
authored
Jun 29, 2015
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
odb: cast to long long for printf
parent
60655056
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
src/odb.c
+1
-1
No files found.
src/odb.c
View file @
e5f9df7b
...
@@ -53,7 +53,7 @@ static int load_alternates(git_odb *odb, const char *objects_dir, int alternate_
...
@@ -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
)
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
);
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
);
assert
(
len
>
0
&&
len
<=
(
int
)
n
);
return
len
+
1
;
return
len
+
1
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment