Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126272
b: refs/heads/master
c: 40bc1f2
h: refs/heads/master
v: v3
  • Loading branch information
Harvey Harrison authored and Linus Torvalds committed Jan 6, 2009
1 parent 7491989 commit a85782b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 60348802e9cb137ee86590c3e4c57c1ec2e8fc69
refs/heads/master: 40bc1f2dbc29ab88176a650e51f2246526105093
2 changes: 1 addition & 1 deletion trunk/lib/prio_heap.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void *heap_insert(struct ptr_heap *heap, void *p)

if (heap->size < heap->max) {
/* Heap insertion */
int pos = heap->size++;
pos = heap->size++;
while (pos > 0 && heap->gt(p, ptrs[(pos-1)/2])) {
ptrs[pos] = ptrs[(pos-1)/2];
pos = (pos-1)/2;
Expand Down

0 comments on commit a85782b

Please sign in to comment.