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
71379313
Commit
71379313
authored
Sep 23, 2013
by
Russell Belfer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warnings on Windows 64-bit build
parent
1ca3e49f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
src/filter.c
+11
-3
tests-clar/repo/init.c
+1
-1
No files found.
src/filter.c
View file @
71379313
...
...
@@ -657,9 +657,17 @@ int git_filter_list_apply_to_blob(
git_filter_list
*
filters
,
git_blob
*
blob
)
{
git_buf
in
=
{
(
char
*
)
git_blob_rawcontent
(
blob
),
0
,
git_blob_rawsize
(
blob
)
};
git_buf
in
=
GIT_BUF_INIT
;
git_off_t
rawsize
=
git_blob_rawsize
(
blob
);
if
(
!
git__is_sizet
(
rawsize
))
{
giterr_set
(
GITERR_OS
,
"Blob is too large to filter"
);
return
-
1
;
}
in
.
ptr
=
(
char
*
)
git_blob_rawcontent
(
blob
);
in
.
asize
=
0
;
in
.
size
=
(
size_t
)
rawsize
;
if
(
filters
)
git_oid_cpy
(
&
filters
->
source
.
oid
,
git_blob_id
(
blob
));
...
...
tests-clar/repo/init.c
View file @
71379313
...
...
@@ -382,7 +382,7 @@ static void assert_hooks_match(
cl_git_pass
(
git_buf_joinpath
(
&
actual
,
repo_dir
,
hook_path
));
cl_git_pass
(
git_path_lstat
(
actual
.
ptr
,
&
st
));
cl_assert
_equal_sz
(
expected_st
.
st_size
,
st
.
st_size
);
cl_assert
(
expected_st
.
st_size
==
st
.
st_size
);
if
(
GIT_MODE_TYPE
(
expected_st
.
st_mode
)
!=
GIT_FILEMODE_LINK
)
{
mode_t
expected_mode
=
...
...
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