@@ -46,9 +46,7 @@ bool HuffmanDecoder::decode_binary(BitStreamReader &encoded, std::ostream &decod
46
46
47
47
if (!decode_codes (encoded, max_code_length))
48
48
{
49
- LOGW (
50
- " Error decoding codes from stream (maximum code length = {})" ,
51
- static_cast <std::uint32_t >(m_max_code_length));
49
+ LOGW (" Error decoding codes from stream (maximum code length = {})" , m_max_code_length);
52
50
return false ;
53
51
}
54
52
else if (!decode_symbols (encoded, max_code_length, chunk_size, decoded))
@@ -82,7 +80,7 @@ bool HuffmanDecoder::decode_header(BitStreamReader &encoded, std::uint32_t &chun
82
80
return decode_header_version1 (encoded, chunk_size);
83
81
84
82
default :
85
- LOGW (" Decoded invalid Huffman version {}" , static_cast <std:: uint32_t >( huffman_version) );
83
+ LOGW (" Decoded invalid Huffman version {}" , huffman_version);
86
84
break ;
87
85
}
88
86
@@ -102,7 +100,7 @@ bool HuffmanDecoder::decode_header_version1(BitStreamReader &encoded, std::uint3
102
100
}
103
101
else if (encoded_chunk_size_kb == 0 )
104
102
{
105
- LOGW (" Decoded invalid chunk size {}" , static_cast <std:: uint32_t >( encoded_chunk_size_kb) );
103
+ LOGW (" Decoded invalid chunk size {}" , encoded_chunk_size_kb);
106
104
return false ;
107
105
}
108
106
@@ -118,9 +116,7 @@ bool HuffmanDecoder::decode_header_version1(BitStreamReader &encoded, std::uint3
118
116
(encoded_max_code_length == 0 ) ||
119
117
(encoded_max_code_length >= std::numeric_limits<code_type>::digits))
120
118
{
121
- LOGW (
122
- " Decoded invalid maximum code length {}" ,
123
- static_cast <std::uint32_t >(encoded_max_code_length));
119
+ LOGW (" Decoded invalid maximum code length {}" , encoded_max_code_length);
124
120
return false ;
125
121
}
126
122
@@ -145,9 +141,7 @@ bool HuffmanDecoder::decode_codes(BitStreamReader &encoded, length_type &max_cod
145
141
}
146
142
else if ((counts_size == 0 ) || (counts_size > (m_max_code_length + 1 )))
147
143
{
148
- LOGW (
149
- " Decoded invalid number of code length counts {}" ,
150
- static_cast <std::uint32_t >(counts_size));
144
+ LOGW (" Decoded invalid number of code length counts {}" , counts_size);
151
145
return false ;
152
146
}
153
147
@@ -176,9 +170,7 @@ bool HuffmanDecoder::decode_codes(BitStreamReader &encoded, length_type &max_cod
176
170
177
171
if (!encoded.read_byte (symbol))
178
172
{
179
- LOGW (
180
- " Could not decode symbol of length {} bits" ,
181
- static_cast <std::uint32_t >(length));
173
+ LOGW (" Could not decode symbol of length {} bits" , length);
182
174
return false ;
183
175
}
184
176
0 commit comments