diff --git a/sk1/compressor.c b/sk1/compressor.c index f418523..ce8f33c 100644 --- a/sk1/compressor.c +++ b/sk1/compressor.c @@ -44,10 +44,10 @@ void swapMinHeapNode(struct MinHeapNode** a, struct MinHeapNode** b) { } // MinHeapify function -void minHeapify(struct MinHeap* minHeap, int idx) { - unsigned smallest = idx; // Преобразуем в unsigned - unsigned left = 2 * idx + 1; // Преобразуем в unsigned - unsigned right = 2 * idx + 2; // Преобразуем в unsigned +void minHeapify(struct MinHeap* minHeap, unsigned idx) { + unsigned smallest = idx; // Changed to unsigned + unsigned left = 2 * idx + 1; // Changed to unsigned + unsigned right = 2 * idx + 2; // Changed to unsigned if (left < minHeap->size && minHeap->array[left]->freq < minHeap->array[smallest]->freq) smallest = left;