diff --git a/src/fake_unit_ptr.hpp b/src/fake_unit_ptr.hpp index 0cb19e7cd378..afc1c490da71 100644 --- a/src/fake_unit_ptr.hpp +++ b/src/fake_unit_ptr.hpp @@ -70,7 +70,7 @@ private : public: explicit operator bool() const - { return unit_.get(); } + { return unit_.get() != nullptr; } }; #endif