object: avoid comparing different types

This commit is contained in:
Danny Robson 2018-05-10 12:58:15 +10:00
parent 7f35915772
commit 098bba3a7a

View File

@ -34,7 +34,7 @@ namespace cruft::vk {
object (const native_t<SelfT> &_native):
m_native (_native)
{
CHECK_NEQ (m_native, VK_NULL_HANDLE);
CHECK_NEQ (m_native, static_cast<native_type> (VK_NULL_HANDLE));
}
object (object &&rhs):
@ -146,7 +146,7 @@ namespace cruft::vk {
//---------------------------------------------------------------------
~owned ()
{
CHECK_EQ (this->native (), VK_NULL_HANDLE);
CHECK_EQ (this->native (), static_cast<typename SelfT::native_type> (VK_NULL_HANDLE));
}