diff --git a/src/regex_impl.cc b/src/regex_impl.cc index f6d4dab0..38a2dfc6 100644 --- a/src/regex_impl.cc +++ b/src/regex_impl.cc @@ -1138,7 +1138,7 @@ struct TestVM : CompiledRegex, ThreadedRegexVM : CompiledRegex{compile_regex(re, dir == MatchDirection::Forward ? RegexCompileFlags::None : RegexCompileFlags::Backward)}, VMType{(const CompiledRegex&)*this} - { if (dump) printf(dump_regex(*this).c_str()); } + { if (dump) puts(dump_regex(*this).c_str()); } bool exec(StringView re, RegexExecFlags flags = RegexExecFlags::AnyMatch) {