]> code.bitgloo.com Git - clyne/consteval-huffman.git/commitdiff
include size of decode tree
authorClyne Sullivan <clyne@bitgloo.com>
Sun, 2 Aug 2020 01:57:51 +0000 (21:57 -0400)
committerClyne Sullivan <clyne@bitgloo.com>
Sun, 2 Aug 2020 01:57:51 +0000 (21:57 -0400)
consteval_huffman.hpp

index 82181120110b62dd46dec5bd43546a9a09a2728f..82a39c0f416e0e4cb3efa8b2ad47f648b8f2020e 100644 (file)
@@ -269,7 +269,7 @@ public:
     }
 
     consteval static auto compressed_size() {
-        return sizeof(compressed_data);
+        return sizeof(compressed_data) + sizeof(decode_tree);
     }
     consteval static auto uncompressed_size() {
         return data_length;