diff --git a/src/thread_safe.h b/src/thread_safe.h index 1ef8f336b..4f2448f1b 100644 --- a/src/thread_safe.h +++ b/src/thread_safe.h @@ -438,7 +438,7 @@ namespace safe { if (!_count) { new (_object_buf.data()) element_type; - if (_construct(*reinterpret_cast(_object_buf.data()))) { + if (_construct(*reinterpret_cast(_object_buf.data())) != 0) { return ptr_t {nullptr}; } }