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
7c411fd9
Commit
7c411fd9
authored
Oct 01, 2012
by
Russell Belfer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix up more Win64 compile warnings
parent
cc5bf359
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/refs.c
+5
-5
No files found.
src/refs.c
View file @
7c411fd9
...
...
@@ -1608,12 +1608,12 @@ static int ensure_segment_validity(const char *name)
prev
=
*
current
;
}
return
current
-
name
;
return
(
int
)(
current
-
name
)
;
}
static
bool
is_all_caps_and_underscore
(
const
char
*
name
,
in
t
len
)
static
bool
is_all_caps_and_underscore
(
const
char
*
name
,
size_
t
len
)
{
in
t
i
;
size_
t
i
;
char
c
;
assert
(
name
&&
len
>
0
);
...
...
@@ -1665,7 +1665,7 @@ int git_reference__normalize_name(
if
(
segment_len
>
0
)
{
if
(
normalize
)
{
in
t
cur_len
=
git_buf_len
(
buf
);
size_
t
cur_len
=
git_buf_len
(
buf
);
git_buf_joinpath
(
buf
,
git_buf_cstr
(
buf
),
current
);
git_buf_truncate
(
buf
,
...
...
@@ -1704,7 +1704,7 @@ int git_reference__normalize_name(
goto
cleanup
;
if
((
segments_count
==
1
)
&&
!
(
is_all_caps_and_underscore
(
name
,
segment_len
)
||
!
(
is_all_caps_and_underscore
(
name
,
(
size_t
)
segment_len
)
||
((
flags
&
GIT_REF_FORMAT_REFSPEC_PATTERN
)
&&
!
strcmp
(
"*"
,
name
))))
goto
cleanup
;
...
...
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