From ef65ac977097972e0d37f6c6eae4946da894aebb Mon Sep 17 00:00:00 2001 From: Kishi85 Date: Mon, 25 May 2026 09:44:22 +0200 Subject: [PATCH] fix: explicitly check constructor error in thread_safe.h --- src/thread_safe.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thread_safe.h b/src/thread_safe.h index 1ef8f336b80..4f2448f1b59 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}; } }