chore(runtime/cpp): fix style
This commit is contained in:
parent
e36fde4d45
commit
84a80b343a
2 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ public:
|
|||
m_free_list[n] = *(reinterpret_cast<void **>(r));
|
||||
return r;
|
||||
} else {
|
||||
return malloc(sizeof(obj) + sizeof(void*)*n);
|
||||
return malloc(sizeof(obj) + sizeof(void*)*n); // NOLINT
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ class obj {
|
|||
obj apply() const;
|
||||
obj_cell * steal_ptr() { obj_cell * r = m_data; m_data = LEAN_BOX(0); return r; }
|
||||
public:
|
||||
obj():m_data(LEAN_BOX(0)) { static_assert(sizeof(obj) == sizeof(void *), "unexpected class obj size"); }
|
||||
obj():m_data(LEAN_BOX(0)) { static_assert(sizeof(obj) == sizeof(void *), "unexpected class obj size"); } // NOLINT
|
||||
obj(unsigned cidx):m_data(LEAN_BOX(cidx)) {}
|
||||
obj(obj_cell * c):m_data(c) { m_data->inc_ref(); }
|
||||
obj(obj const & o):m_data(o.m_data) { if (LEAN_IS_PTR(m_data)) m_data->inc_ref(); }
|
||||
|
|
Loading…
Reference in a new issue