diff --git a/include/boost/regex/detail/regex_compile.hpp b/include/boost/regex/detail/regex_compile.hpp index e8455e7b..8f7515a6 100644 --- a/include/boost/regex/detail/regex_compile.hpp +++ b/include/boost/regex/detail/regex_compile.hpp @@ -1730,8 +1730,13 @@ unsigned int BOOST_RE_CALL reg_expression::set_express return error_code(); } // extend: - /*dat = */add_simple(dat, re_detail::syntax_element_jump, re_detail::re_jump_size); + dat = add_simple(dat, re_detail::syntax_element_jump, re_detail::re_jump_size); data.align(); + // + // we don't know what value to put here yet, + // use an arbitrarily large value for now + // and check it later (TODO!) + ((re_detail::re_jump*)dat)->alt.i = INT_MAX/2; // now work out where to insert: unsigned int offset = 0;