Skip to content

Commit

Permalink
Remove extra plus sign from Huff_Compress()
Browse files Browse the repository at this point in the history
There was an extra plus sign in Huff_Compress(). It wasn't causing any
issues as it does not affect the generated code. Removing it makes the
source code the same as Huff_Decompress().

The odd source code was brought to my attention by Tobias Kuehnhammer.
  • Loading branch information
zturtleman committed Jan 15, 2018
1 parent 6387c33 commit 7e2aa2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/qcommon/huffman.c
Expand Up @@ -401,7 +401,7 @@ void Huff_Compress(msg_t *mbuf, int offset) {
huff_t huff;

size = mbuf->cursize - offset;
buffer = mbuf->data+ + offset;
buffer = mbuf->data + offset;

if (size<=0) {
return;
Expand Down

0 comments on commit 7e2aa2c

Please sign in to comment.