diff options
author | Pixel <> | 2001-03-05 01:31:31 +0000 |
---|---|---|
committer | Pixel <> | 2001-03-05 01:31:31 +0000 |
commit | 04d8a10293bdb5407127dc7693da33e168fa4d5c (patch) | |
tree | 565999a7a82585f9f5b310e1706a4107b5bd7331 /lib/Huffman.cc | |
parent | dfd868ecf9e37a5e6954a073c3ba43a970f7ca54 (diff) |
Changement d'indentation
Diffstat (limited to 'lib/Huffman.cc')
-rw-r--r-- | lib/Huffman.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Huffman.cc b/lib/Huffman.cc index aadf927..4f68852 100644 --- a/lib/Huffman.cc +++ b/lib/Huffman.cc @@ -10,7 +10,7 @@ HTree *Coder(PriorityList * P) Datas_t tx, ty; x = y = z = NULL; - + for (i = 0; i < n - 1; i++) { f1 = P->Extract_Min(tx); f2 = P->Extract_Min(ty); @@ -26,6 +26,7 @@ HTree *Coder(PriorityList * P) void HInsert(PriorityList * P, int freq, char *object) { - HTree * leaf = new HTree(freq, object); + HTree *leaf = new HTree(freq, object); + P->Insert(freq, (Datas_t) leaf); } |