Add missing inline from header. (#388)

This commit is contained in:
David Chisnall
2021-09-07 08:44:47 +01:00
committed by GitHub
parent dac1ba6a6c
commit fd18528278
2 changed files with 7 additions and 3 deletions

View File

@@ -169,7 +169,7 @@ namespace snmalloc
}
};
Metaslab* Metaslab::from_link(SlabLink* lptr)
inline Metaslab* Metaslab::from_link(SlabLink* lptr)
{
return pointer_offset_signed<Metaslab>(
lptr, -static_cast<ptrdiff_t>(offsetof(Metaslab, link)));