From 6195ec749b6f3884d6831051c762bf21bfe862d9 Mon Sep 17 00:00:00 2001 From: WalterCouto Date: Thu, 20 Dec 2018 11:18:16 -0500 Subject: [PATCH] Change bitset upperbound to another higher arbitrary value to allow for larger number of rules We had a complex grammar file hit past this upperbound. One solution is to put this up higher, another is to refactor into a container that can grow. --- runtime/Cpp/runtime/src/support/BitSet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/Cpp/runtime/src/support/BitSet.h b/runtime/Cpp/runtime/src/support/BitSet.h index ccbb6ff1c..bf849b187 100644 --- a/runtime/Cpp/runtime/src/support/BitSet.h +++ b/runtime/Cpp/runtime/src/support/BitSet.h @@ -9,7 +9,7 @@ namespace antlrcpp { - class ANTLR4CPP_PUBLIC BitSet : public std::bitset<1024> { + class ANTLR4CPP_PUBLIC BitSet : public std::bitset<2048> { public: size_t nextSetBit(size_t pos) const { for (size_t i = pos; i < size(); i++){