mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 23:41:03 +01:00
[priority-queue] Optimize swap()
This commit is contained in:
1 parent
c7317ef761
commit
9308659fd7
1 file changed
+3
-3
@@ -142,9 +142,9 @@ struct hb_priority_queue_t
|
||||
|
||||
void swap (unsigned a, unsigned b)
|
||||
{
|
||||
item_t temp = heap[a];
|
||||
heap[a] = heap[b];
|
||||
heap[b] = temp;
|
||||
assert (a <= heap.length);
|
||||
assert (b <= heap.length);
|
||||
hb_swap (heap.arrayZ[a], heap.arrayZ[b]);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user