diff --git a/src/regex_impl.cc b/src/regex_impl.cc index 46ccbae0..d88397ea 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) {