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
9ac8b113
Commit
9ac8b113
authored
Sep 20, 2012
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix MSVC amd64 compilation warnings
parent
28abf3db
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
src/checkout.c
+1
-1
src/diff_output.c
+2
-2
src/transports/http.c
+1
-1
src/win32/utf-conv.c
+1
-1
No files found.
src/checkout.c
View file @
9ac8b113
...
...
@@ -25,7 +25,7 @@
struct
checkout_diff_data
{
git_buf
*
path
;
in
t
workdir_len
;
size_
t
workdir_len
;
git_checkout_opts
*
checkout_opts
;
git_indexer_stats
*
stats
;
git_repository
*
owner
;
...
...
src/diff_output.c
View file @
9ac8b113
...
...
@@ -1354,9 +1354,9 @@ int git_diff_iterator_num_lines_in_hunk(git_diff_iterator *iter)
return
error
;
if
(
iter
->
hunk_curr
)
return
iter
->
hunk_curr
->
line_count
;
return
(
int
)
iter
->
hunk_curr
->
line_count
;
if
(
iter
->
hunk_head
)
return
iter
->
hunk_head
->
line_count
;
return
(
int
)
iter
->
hunk_head
->
line_count
;
return
0
;
}
...
...
src/transports/http.c
View file @
9ac8b113
...
...
@@ -166,7 +166,7 @@ static int send_request(transport_http *t, const char *service, void *data, ssiz
}
if
(
WinHttpSendRequest
(
t
->
request
,
WINHTTP_NO_ADDITIONAL_HEADERS
,
0
,
data
,
content_length
,
content_length
,
0
)
==
FALSE
)
{
data
,
(
DWORD
)
content_length
,
(
DWORD
)
content_length
,
0
)
==
FALSE
)
{
giterr_set
(
GITERR_OS
,
"Failed to send request"
);
goto
on_error
;
}
...
...
src/win32/utf-conv.c
View file @
9ac8b113
...
...
@@ -72,7 +72,7 @@ void git__utf8_to_16(wchar_t *dest, size_t length, const char *src)
void
git__utf8_to_16
(
wchar_t
*
dest
,
size_t
length
,
const
char
*
src
)
{
MultiByteToWideChar
(
CP_UTF8
,
0
,
src
,
-
1
,
dest
,
length
);
MultiByteToWideChar
(
CP_UTF8
,
0
,
src
,
-
1
,
dest
,
(
int
)
length
);
}
void
git__utf16_to_8
(
char
*
out
,
const
wchar_t
*
input
)
...
...
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