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
bdb94c21
Commit
bdb94c21
authored
Dec 17, 2012
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix MSVC compilation warnings
parent
71131b55
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
src/indexer.c
+3
-3
src/win32/posix_w32.c
+0
-1
No files found.
src/indexer.c
View file @
bdb94c21
...
@@ -201,7 +201,7 @@ static void hash_header(git_hash_ctx *ctx, git_off_t len, git_otype type)
...
@@ -201,7 +201,7 @@ static void hash_header(git_hash_ctx *ctx, git_off_t len, git_otype type)
char
buffer
[
64
];
char
buffer
[
64
];
size_t
hdrlen
;
size_t
hdrlen
;
hdrlen
=
git_odb__format_object_header
(
buffer
,
sizeof
(
buffer
),
len
,
type
);
hdrlen
=
git_odb__format_object_header
(
buffer
,
sizeof
(
buffer
),
(
size_t
)
len
,
type
);
git_hash_update
(
ctx
,
buffer
,
hdrlen
);
git_hash_update
(
ctx
,
buffer
,
hdrlen
);
}
}
...
@@ -269,11 +269,11 @@ static int crc_object(uint32_t *crc_out, git_mwindow_file *mwf, git_off_t start,
...
@@ -269,11 +269,11 @@ static int crc_object(uint32_t *crc_out, git_mwindow_file *mwf, git_off_t start,
crc
=
crc32
(
0L
,
Z_NULL
,
0
);
crc
=
crc32
(
0L
,
Z_NULL
,
0
);
while
(
size
)
{
while
(
size
)
{
ptr
=
git_mwindow_open
(
mwf
,
&
w
,
start
,
size
,
&
left
);
ptr
=
git_mwindow_open
(
mwf
,
&
w
,
start
,
(
size_t
)
size
,
&
left
);
if
(
ptr
==
NULL
)
if
(
ptr
==
NULL
)
return
-
1
;
return
-
1
;
len
=
min
(
left
,
size
);
len
=
min
(
left
,
(
size_t
)
size
);
crc
=
crc32
(
crc
,
ptr
,
len
);
crc
=
crc32
(
crc
,
ptr
,
len
);
size
-=
len
;
size
-=
len
;
start
+=
len
;
start
+=
len
;
...
...
src/win32/posix_w32.c
View file @
bdb94c21
...
@@ -59,7 +59,6 @@ static int do_lstat(
...
@@ -59,7 +59,6 @@ static int do_lstat(
{
{
WIN32_FILE_ATTRIBUTE_DATA
fdata
;
WIN32_FILE_ATTRIBUTE_DATA
fdata
;
wchar_t
fbuf
[
GIT_WIN_PATH
],
lastch
;
wchar_t
fbuf
[
GIT_WIN_PATH
],
lastch
;
DWORD
last_error
;
int
flen
;
int
flen
;
flen
=
git__utf8_to_16
(
fbuf
,
GIT_WIN_PATH
,
file_name
);
flen
=
git__utf8_to_16
(
fbuf
,
GIT_WIN_PATH
,
file_name
);
...
...
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