From a7fee43cefce95097ba46591090395a3c882741c Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 23 Nov 2022 17:46:32 -0700 Subject: [PATCH] [priority-queue] Minor micro-optimize --- src/hb-priority-queue.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-priority-queue.hh b/src/hb-priority-queue.hh index 6943e2966..ac76b7d95 100644 --- a/src/hb-priority-queue.hh +++ b/src/hb-priority-queue.hh @@ -114,7 +114,7 @@ struct hb_priority_queue_t bool has_right = right < heap.length; if (heap.arrayZ[index].first <= heap.arrayZ[left].first - && (!has_right || heap[index].first <= heap.arrayZ[right].first)) + && (!has_right || heap.arrayZ[index].first <= heap.arrayZ[right].first)) return; if (!has_right || heap.arrayZ[left].first < heap.arrayZ[right].first)