BAN: Use static_cast instead of C-style cast in RefPtr deletion

This commit is contained in:
Bananymous 2024-08-14 13:20:40 +03:00
parent bb40069773
commit e000c7d818
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ namespace BAN
uint32_t old = m_ref_count.fetch_sub(1); uint32_t old = m_ref_count.fetch_sub(1);
ASSERT(old > 0); ASSERT(old > 0);
if (old == 1) if (old == 1)
delete (const T*)this; delete static_cast<const T*>(this);
} }
protected: protected: