OSDN Git Service
(root)
/
git-core
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'sg/test-with-stdin' into maint
[git-core/git.git]
/
line-range.c
diff --git
a/line-range.c
b/line-range.c
index
de4e32f
..
323399d
100644
(file)
--- a/
line-range.c
+++ b/
line-range.c
@@
-269,8
+269,7
@@
int parse_range_arg(const char *arg, nth_line_fn_t nth_line_cb,
return -1;
if (*begin && *end && *end < *begin) {
- long tmp;
- tmp = *end; *end = *begin; *begin = tmp;
+ SWAP(*end, *begin);
}
return 0;