From 0999d9f9a1654c4fcbd1fc4f4fcf27080dd979e2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 21 Oct 2012 14:14:22 +0000 Subject: - a bit less crazy implementation of flags; - fix for icons' names in icolib git-svn-id: http://svn.miranda-ng.org/main/trunk@2023 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/CountryFlags/src/huffman.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/CountryFlags/src/huffman.cpp') diff --git a/plugins/CountryFlags/src/huffman.cpp b/plugins/CountryFlags/src/huffman.cpp index c460e9a66e..ee8680f558 100644 --- a/plugins/CountryFlags/src/huffman.cpp +++ b/plugins/CountryFlags/src/huffman.cpp @@ -299,7 +299,7 @@ static void _Huffman_MakeTree( huff_sym_t *sym, huff_bitstream_t *stream ) root = (huff_encodenode_t *) 0; nodes_left = num_symbols; next_idx = num_symbols; - while( nodes_left > 1 ) + while ( nodes_left > 1 ) { /* Find the two lightest nodes */ node_1 = (huff_encodenode_t *) 0; @@ -435,7 +435,7 @@ int Huffman_Compress( unsigned char *in, unsigned char *out, } } } - while( swaps ); + while ( swaps ); /* Encode input stream */ for ( k = 0; k < insize; ++ k ) @@ -491,7 +491,7 @@ void Huffman_Uncompress( unsigned char *in, unsigned char *out, { /* Traverse tree until we find a matching leaf node */ node = root; - while( node->Symbol < 0 ) + while ( node->Symbol < 0 ) { /* Get next node */ if ( _Huffman_ReadBit( &stream )) -- cgit v1.2.3