diff --git a/src/runtime/cpp/lean_runtime.cpp b/src/runtime/cpp/lean_runtime.cpp index 72e61d63e9..af3ef60704 100644 --- a/src/runtime/cpp/lean_runtime.cpp +++ b/src/runtime/cpp/lean_runtime.cpp @@ -36,7 +36,7 @@ public: m_free_list[n] = *(reinterpret_cast(r)); return r; } else { - return malloc(sizeof(obj) + sizeof(void*)*n); // NOLINT + return malloc(sizeof(obj_cell) + sizeof(void*)*n); // NOLINT } }