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
623460ab
Commit
623460ab
authored
Oct 21, 2013
by
Russell Belfer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warnings for win64
parent
3b5f7954
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/diff_xdiff.c
+5
-5
No files found.
src/diff_xdiff.c
View file @
623460ab
...
...
@@ -53,7 +53,7 @@ typedef struct {
git_xdiff_output
*
xo
;
git_patch
*
patch
;
git_diff_hunk
hunk
;
size_
t
old_lineno
,
new_lineno
;
in
t
old_lineno
,
new_lineno
;
}
git_xdiff_info
;
static
int
diff_update_lines
(
...
...
@@ -77,20 +77,20 @@ static int diff_update_lines(
case
GIT_DIFF_LINE_DEL_EOFNL
:
line
->
old_lineno
=
-
1
;
line
->
new_lineno
=
info
->
new_lineno
;
info
->
new_lineno
+=
line
->
num_lines
;
info
->
new_lineno
+=
(
int
)
line
->
num_lines
;
break
;
case
GIT_DIFF_LINE_DELETION
:
case
GIT_DIFF_LINE_ADD_EOFNL
:
line
->
old_lineno
=
info
->
old_lineno
;
line
->
new_lineno
=
-
1
;
info
->
old_lineno
+=
line
->
num_lines
;
info
->
old_lineno
+=
(
int
)
line
->
num_lines
;
break
;
case
GIT_DIFF_LINE_CONTEXT
:
case
GIT_DIFF_LINE_CONTEXT_EOFNL
:
line
->
old_lineno
=
info
->
old_lineno
;
line
->
new_lineno
=
info
->
new_lineno
;
info
->
old_lineno
+=
line
->
num_lines
;
info
->
new_lineno
+=
line
->
num_lines
;
info
->
old_lineno
+=
(
int
)
line
->
num_lines
;
info
->
new_lineno
+=
(
int
)
line
->
num_lines
;
break
;
default:
giterr_set
(
GITERR_INVALID
,
"Unknown diff line origin %02x"
,
...
...
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