From: clyne Date: Thu, 31 Dec 2020 14:56:34 +0000 (-0500) Subject: Fixed decoder::end() for uncompressed scenario X-Git-Url: https://code.bitgloo.com/?a=commitdiff_plain;h=2028b12fda38420b91b27781cce1a2495f7c0b54;p=clyne%2Fconsteval-huffman.git Fixed decoder::end() for uncompressed scenario See issue #2 --- diff --git a/include/consteval_huffman/consteval_huffman.hpp b/include/consteval_huffman/consteval_huffman.hpp index b7ea57f..7884e2f 100644 --- a/include/consteval_huffman/consteval_huffman.hpp +++ b/include/consteval_huffman/consteval_huffman.hpp @@ -275,7 +275,7 @@ public: ender.m_data += size_bytes - 1; ender.m_bit = 1 << (7 - last_bits); } else { - ender.m_data += raw_data.size() + 1; + ender.m_data += raw_data.size(); } return ender;