fix: replace_fn.cpp (#4798)

This commit is contained in:
Leonardo de Moura 2024-07-20 06:20:43 +02:00 committed by GitHub
parent c2117d75a6
commit d0bc4e4245
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -105,7 +105,7 @@ class replace_fn {
lean_inc_ref(m_f);
lean_object * r = lean_apply_1(m_f, e.raw());
if (!lean_is_scalar(r)) {
expr e_new(lean_ctor_get(r, 0));
expr e_new(lean_ctor_get(r, 0), true);
lean_dec_ref(r);
return save_result(e, e_new, shared);
}