From 7e2aa2c6274e6cdcdc07d5e987e6d851c31e8718 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sun, 14 Jan 2018 18:24:12 -0600 Subject: [PATCH] Remove extra plus sign from Huff_Compress() 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. --- code/qcommon/huffman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/qcommon/huffman.c b/code/qcommon/huffman.c index 1f424984..0283fb70 100644 --- a/code/qcommon/huffman.c +++ b/code/qcommon/huffman.c @@ -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;