]> code.bitgloo.com Git - clyne/consteval-huffman.git/commitdiff
Fixed decoder::end() for uncompressed scenario
authorclyne <clyne@bitgloo.com>
Thu, 31 Dec 2020 14:56:34 +0000 (09:56 -0500)
committerGitHub <noreply@github.com>
Thu, 31 Dec 2020 14:56:34 +0000 (09:56 -0500)
See issue #2

include/consteval_huffman/consteval_huffman.hpp

index b7ea57f46e62501100657ac5427c840f8f4f081b..7884e2fb024b63bb132d0054f859295863a08fb2 100644 (file)
@@ -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;