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
submodule test invocation: only pass additional arguments
[git-core/git.git]
/
prio-queue.c
diff --git
a/prio-queue.c
b/prio-queue.c
index
17252d2
..
fc3860f
100644
(file)
--- a/
prio-queue.c
+++ b/
prio-queue.c
@@
-21,7
+21,7
@@
void prio_queue_reverse(struct prio_queue *queue)
if (queue->compare != NULL)
die("BUG: prio_queue_reverse() on non-LIFO queue");
- for (i = 0; i <
=
(j = (queue->nr - 1) - i); i++)
+ for (i = 0; i < (j = (queue->nr - 1) - i); i++)
swap(queue, i, j);
}