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
4b27009c
Unverified
Commit
4b27009c
authored
Dec 23, 2021
by
Edward Thomson
Committed by
GitHub
Dec 23, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6094 from visualgitio/commit-graph-long-long
Fix a long long that crept past
parents
734468d6
5761980d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
deps/ntlmclient/ntlm.c
+4
-4
src/commit_graph.c
+2
-2
No files found.
deps/ntlmclient/ntlm.c
View file @
4b27009c
...
...
@@ -930,10 +930,10 @@ const char *ntlm_client_target_domain_dns(ntlm_client *ntlm)
}
#define EVEN_PARITY(a) \
(!!((a) &
0x01ll) ^ !!((a) & 0x02ll
) ^ \
!!((a) &
0x04ll) ^ !!((a) & 0x08ll
) ^ \
!!((a) &
0x10ll) ^ !!((a) & 0x20ll
) ^ \
!!((a) &
0x40ll) ^ !!((a) & 0x80ll
))
(!!((a) &
INT64_C(0x01)) ^ !!((a) & INT64_C(0x02)
) ^ \
!!((a) &
INT64_C(0x04)) ^ !!((a) & INT64_C(0x08)
) ^ \
!!((a) &
INT64_C(0x10)) ^ !!((a) & INT64_C(0x20)
) ^ \
!!((a) &
INT64_C(0x40)) ^ !!((a) & INT64_C(0x80)
))
static
void
generate_odd_parity
(
ntlm_des_block
*
block
)
{
...
...
src/commit_graph.c
View file @
4b27009c
...
...
@@ -1075,11 +1075,11 @@ static int commit_graph_write(
commit_time
=
(
uint64_t
)
packed_commit
->
commit_time
;
if
(
generation
>
GIT_COMMIT_GRAPH_GENERATION_NUMBER_MAX
)
generation
=
GIT_COMMIT_GRAPH_GENERATION_NUMBER_MAX
;
word
=
ntohl
((
uint32_t
)((
generation
<<
2
)
|
((
commit_time
>>
32ull
)
&
0x3ull
)
));
word
=
ntohl
((
uint32_t
)((
generation
<<
2
)
|
((
(
uint32_t
)(
commit_time
>>
32
))
&
0x3
)
));
error
=
git_str_put
(
&
commit_data
,
(
const
char
*
)
&
word
,
sizeof
(
word
));
if
(
error
<
0
)
goto
cleanup
;
word
=
ntohl
((
uint32_t
)(
commit_time
&
0xfffffffful
l
));
word
=
ntohl
((
uint32_t
)(
commit_time
&
0xfffffffful
));
error
=
git_str_put
(
&
commit_data
,
(
const
char
*
)
&
word
,
sizeof
(
word
));
if
(
error
<
0
)
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