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
b97c169e
Commit
b97c169e
authored
Sep 04, 2012
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix MSVC compilation warnings
parent
22e1b4b8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/diff_output.c
+1
-1
src/signature.c
+1
-1
No files found.
src/diff_output.c
View file @
b97c169e
...
...
@@ -727,7 +727,7 @@ int git_diff_entrycount(git_diff_list *diff, int delta_t)
assert
(
diff
);
if
(
delta_t
<
0
)
return
diff
->
deltas
.
length
;
return
(
int
)
diff
->
deltas
.
length
;
git_vector_foreach
(
&
diff
->
deltas
,
i
,
delta
)
{
if
(
delta
->
status
==
(
git_delta_t
)
delta_t
)
...
...
src/signature.c
View file @
b97c169e
...
...
@@ -142,7 +142,7 @@ int git_signature_now(git_signature **sig_out, const char *name, const char *ema
time
(
&
now
);
utc_tm
=
p_gmtime_r
(
&
now
,
&
_utc
);
utc_tm
->
tm_isdst
=
-
1
;
offset
=
difftime
(
now
,
mktime
(
utc_tm
));
offset
=
(
time_t
)
difftime
(
now
,
mktime
(
utc_tm
));
offset
/=
60
;
if
(
git_signature_new
(
&
sig
,
name
,
email
,
now
,
(
int
)
offset
)
<
0
)
...
...
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