Skip to content

Commit be82262

Browse files
committed
Revert stop_character_mask to a complement.
Somehow this makes the MSVC build faster, so we want it. This time without any more warnings (afaik), by appending the "u" unsigned suffix to the hex mask for type compatibility.
1 parent 810b2f1 commit be82262

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 = 0xFF00;
244+
static constexpr const alphabet_index_t stop_character_mask{~0xFFu};
245245

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

0 commit comments

Comments
 (0)