aboutsummaryrefslogtreecommitdiffstats
path: root/src/grt/grt-algos.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/grt/grt-algos.adb')
-rw-r--r--src/grt/grt-algos.adb3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/grt/grt-algos.adb b/src/grt/grt-algos.adb
index 6469e2b80..82c14bd8c 100644
--- a/src/grt/grt-algos.adb
+++ b/src/grt/grt-algos.adb
@@ -39,6 +39,9 @@ package body Grt.Algos is
end Bubble_Down;
begin
+ -- Note: if N < 2, there is nothing to sort. The loops are not
+ -- executed.
+
-- Heapify
for I in reverse 1 .. N / 2 loop
Bubble_Down (I, N);