Skip to content

Commit 68e10c1

Browse files
committed
Fix std::bitset overflow
Fixed #166
1 parent 3521f47 commit 68e10c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mutator.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ enum class Mutation : uint8_t {
5555
Last = Clone,
5656
};
5757

58-
using MutationBitset = std::bitset<static_cast<size_t>(Mutation::Last)>;
58+
using MutationBitset = std::bitset<static_cast<size_t>(Mutation::Last) + 1>;
5959

6060
using Messages = std::vector<Message*>;
6161
using ConstMessages = std::vector<const Message*>;

0 commit comments

Comments
 (0)