diff options
author | 2013-01-11 07:32:46 +0000 | |
---|---|---|
committer | 2013-01-11 07:32:46 +0000 | |
commit | 0e19f641d3186cdbf51f8ca857e2b07ab95779c2 (patch) | |
tree | 234109de1123b13f217494af4b3f8efad346d5cc /src/lib/util/huffman.c | |
parent | 111157ca09a9ff60fe4a9ba49173c315e94314fa (diff) |
Cleanups and version bumpmame0148
Diffstat (limited to 'src/lib/util/huffman.c')
-rw-r--r-- | src/lib/util/huffman.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/util/huffman.c b/src/lib/util/huffman.c index 60120bbdf32..d4bc29deec5 100644 --- a/src/lib/util/huffman.c +++ b/src/lib/util/huffman.c @@ -136,7 +136,7 @@ // MACROS //************************************************************************** -#define MAKE_LOOKUP(code,bits) (((code) << 5) | ((bits) & 0x1f)) +#define MAKE_LOOKUP(code,bits) (((code) << 5) | ((bits) & 0x1f)) @@ -151,12 +151,12 @@ huffman_context_base::huffman_context_base(int numcodes, int maxbits, lookup_value *lookup, UINT32 *histo, node_t *nodes) : m_numcodes(numcodes), - m_maxbits(maxbits), - m_prevdata(0), - m_rleremaining(0), - m_lookup(lookup), - m_datahisto(histo), - m_huffnode(nodes) + m_maxbits(maxbits), + m_prevdata(0), + m_rleremaining(0), + m_lookup(lookup), + m_datahisto(histo), + m_huffnode(nodes) { // limit to 24 bits if (maxbits > 24) @@ -536,9 +536,9 @@ int CLIB_DECL huffman_context_base::tree_node_compare(const void *item1, const v const node_t *node1 = *(const node_t **)item1; const node_t *node2 = *(const node_t **)item2; if (node2->m_weight != node1->m_weight) - return node2->m_weight - node1->m_weight; + return node2->m_weight - node1->m_weight; if (node2->m_bits - node1->m_bits == 0) - fprintf(stderr, "identical node sort keys, should not happen!\n"); + fprintf(stderr, "identical node sort keys, should not happen!\n"); return (int)node1->m_bits - (int)node2->m_bits; } |