diff options
Diffstat (limited to 'src/heap.h')
-rw-r--r-- | src/heap.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -95,6 +95,8 @@ namespace Bu | |||
95 | for( int j = iFill; j >= 0; ) | 95 | for( int j = iFill; j >= 0; ) |
96 | { | 96 | { |
97 | int k = (j-1)/2; | 97 | int k = (j-1)/2; |
98 | if( j == k ) | ||
99 | break; | ||
98 | if( cmp( aItem[k], aItem[j] ) ) | 100 | if( cmp( aItem[k], aItem[j] ) ) |
99 | break; | 101 | break; |
100 | 102 | ||