Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'C/HuffEnc.c')
-rwxr-xr-xC/HuffEnc.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/C/HuffEnc.c b/C/HuffEnc.c
index 6e58d2ce..561c7e5d 100755
--- a/C/HuffEnc.c
+++ b/C/HuffEnc.c
@@ -1,7 +1,5 @@
/* HuffEnc.c -- functions for Huffman encoding
-2008-08-05
-Igor Pavlov
-Public domain */
+2009-09-02 : Igor Pavlov : Public domain */
#include "HuffEnc.h"
#include "Sort.h"
@@ -67,11 +65,11 @@ void Huffman_Generate(const UInt32 *freqs, UInt32 *p, Byte *lens, UInt32 numSymb
if (num < 2)
{
- int minCode = 0;
- int maxCode = 1;
+ unsigned minCode = 0;
+ unsigned maxCode = 1;
if (num == 1)
{
- maxCode = (int)(p[0] & MASK);
+ maxCode = (unsigned)p[0] & MASK;
if (maxCode == 0)
maxCode++;
}