diff --git a/src/regex_impl.hh b/src/regex_impl.hh index 9e87f2c1..77b674f5 100644 --- a/src/regex_impl.hh +++ b/src/regex_impl.hh @@ -620,9 +620,9 @@ private: } std::unique_ptr m_data = nullptr; - int16_t m_capacity = 0; - int16_t m_current = 0; - int16_t m_next = 0; + int32_t m_capacity = 0; // Maximum capacity should be 2*instruction count, so 65536 + int32_t m_current = 0; + int32_t m_next = 0; }; DualThreadStack m_threads;