Skip to content

Commit 661f149

Browse files
authored
Merge pull request #54 from ndusart/cast
cast int const to alphabet_index_t type
2 parents 1149a2a + 4bc857c commit 661f149

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cppcodec/detail/stream_codec.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ struct alphabet_index_info
241241
static constexpr const alphabet_index_t padding_idx = 1 << 8;
242242
static constexpr const alphabet_index_t invalid_idx = 1 << 9;
243243
static constexpr const alphabet_index_t eof_idx = 1 << 10;
244-
static constexpr const alphabet_index_t stop_character_mask{~0xFFu};
244+
static constexpr const alphabet_index_t stop_character_mask = static_cast<alphabet_index_t>(~0xFFu);
245245

246246
static constexpr const bool padding_allowed = padding_searcher<
247247
CodecVariant, num_possible_symbols>::exists_padding_symbol();

0 commit comments

Comments
 (0)