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
8a1e925d
Commit
8a1e925d
authored
Sep 26, 2013
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warnings
parent
ac316e74
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
src/indexer.c
+1
-1
tests-clar/clar_libgit2.c
+1
-1
tests-clar/clar_libgit2.h
+4
-4
No files found.
src/indexer.c
View file @
8a1e925d
...
...
@@ -426,7 +426,7 @@ int git_indexer_stream_add(git_indexer_stream *idx, const void *data, size_t siz
if
(
git_filebuf_write
(
&
idx
->
pack_file
,
data
,
size
)
<
0
)
return
-
1
;
hash_partially
(
idx
,
data
,
size
);
hash_partially
(
idx
,
data
,
(
int
)
size
);
/* Make sure we set the new size of the pack */
if
(
idx
->
opened_pack
)
{
...
...
tests-clar/clar_libgit2.c
View file @
8a1e925d
...
...
@@ -440,7 +440,7 @@ void clar__assert_equal_file(
int
ignore_cr
,
const
char
*
path
,
const
char
*
file
,
size_
t
line
)
in
t
line
)
{
char
buf
[
4000
];
ssize_t
bytes
,
total_bytes
=
0
;
...
...
tests-clar/clar_libgit2.h
View file @
8a1e925d
...
...
@@ -44,7 +44,7 @@ GIT_INLINE(void) clar__assert_in_range(
}
#define cl_assert_equal_sz(sz1,sz2) do { \
size_t __sz1 = (s
z1), __sz2 =
(sz2); \
size_t __sz1 = (s
ize_t)(sz1), __sz2 = (size_t)
(sz2); \
clar__assert_equal(__FILE__,__LINE__,#sz1 " != " #sz2, 1, "%"PRIuZ, __sz1, __sz2); \
} while (0)
...
...
@@ -52,10 +52,10 @@ GIT_INLINE(void) clar__assert_in_range(
clar__assert_in_range((L),(V),(H),__FILE__,__LINE__,"Range check: " #V " in [" #L "," #H "]", 1)
#define cl_assert_equal_file(DATA,SIZE,PATH) \
clar__assert_equal_file(DATA,SIZE,0,PATH,__FILE__,__LINE__)
clar__assert_equal_file(DATA,SIZE,0,PATH,__FILE__,
(int)
__LINE__)
#define cl_assert_equal_file_ignore_cr(DATA,SIZE,PATH) \
clar__assert_equal_file(DATA,SIZE,1,PATH,__FILE__,__LINE__)
clar__assert_equal_file(DATA,SIZE,1,PATH,__FILE__,
(int)
__LINE__)
void
clar__assert_equal_file
(
const
char
*
expected_data
,
...
...
@@ -63,7 +63,7 @@ void clar__assert_equal_file(
int
ignore_cr
,
const
char
*
path
,
const
char
*
file
,
size_
t
line
);
in
t
line
);
/*
* Some utility macros for building long strings
...
...
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