diff --git a/consteval_huffman.hpp b/consteval_huffman.hpp index 82a39c0..6061764 100644 --- a/consteval_huffman.hpp +++ b/consteval_huffman.hpp @@ -17,10 +17,10 @@ * @tparam data The string of data to be compressed. * @tparam data_length The size in bytes of the data, defaults to using strlen(). */ -template::length(data)> +template::length(data)> class huffman_compress { - using size_t = unsigned long int; + using size_t = long int; // Jump to the bottom of this header for the public-facing features of this // class. @@ -274,7 +274,7 @@ public: consteval static auto uncompressed_size() { return data_length; } - consteval static auto bytes_saved() { + consteval static size_t bytes_saved() { return uncompressed_size() - compressed_size(); }