diff --git a/src/runtime/compact.cpp b/src/runtime/compact.cpp index 91c5a944e3..8c69602302 100644 --- a/src/runtime/compact.cpp +++ b/src/runtime/compact.cpp @@ -305,7 +305,7 @@ void compacted_region::fix_mpz(object * o) { sz++; } /* use string to initialize memory */ - new (&(((mpz_object*)o)->m_value)) mpz(s.c_str()); + new (&(((mpz_object*)o)->m_value)) mpz(s.c_str()); // NOLINT /* update m_nested_mpzs list */ *reinterpret_cast(m_next) = m_nested_mpzs; m_nested_mpzs = (mpz_object*)o; diff --git a/src/runtime/lean.h b/src/runtime/lean.h index 7b3ee5626d..a9aa807aeb 100644 --- a/src/runtime/lean.h +++ b/src/runtime/lean.h @@ -24,7 +24,7 @@ extern "C" { #include #define LEAN_USING_STD #endif -#include "config.h" +#include "config.h" // NOLINT #define LEAN_CLOSURE_MAX_ARGS 16 #define LEAN_OBJECT_SIZE_DELTA 8 diff --git a/src/runtime/object.cpp b/src/runtime/object.cpp index 6d3076ca29..90903687be 100644 --- a/src/runtime/object.cpp +++ b/src/runtime/object.cpp @@ -4,6 +4,8 @@ Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura */ +#include +#include #include #include #include "runtime/object.h" diff --git a/src/runtime/object.h b/src/runtime/object.h index 4647829e30..acef47fd32 100644 --- a/src/runtime/object.h +++ b/src/runtime/object.h @@ -5,6 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura */ #pragma once +#include #include "runtime/lean.h" #include "runtime/mpz.h"