From 098bba3a7a6c3cda103dd63c605c2c346b110e75 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 10 May 2018 12:58:15 +1000 Subject: [PATCH] object: avoid comparing different types --- object.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/object.hpp b/object.hpp index 6f941ac..d4c0079 100644 --- a/object.hpp +++ b/object.hpp @@ -34,7 +34,7 @@ namespace cruft::vk { object (const native_t &_native): m_native (_native) { - CHECK_NEQ (m_native, VK_NULL_HANDLE); + CHECK_NEQ (m_native, static_cast (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 (VK_NULL_HANDLE)); }