From 40ea6d972100468cfaba03a9dc1a03d21e8fec8b Mon Sep 17 00:00:00 2001 From: Pratik Nayak Date: Wed, 2 Aug 2023 23:49:00 +0200 Subject: [PATCH] Fix warning in exception --- include/ginkgo/core/base/exception_helpers.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ginkgo/core/base/exception_helpers.hpp b/include/ginkgo/core/base/exception_helpers.hpp index a9a93f15fe8..4a12865f374 100644 --- a/include/ginkgo/core/base/exception_helpers.hpp +++ b/include/ginkgo/core/base/exception_helpers.hpp @@ -733,7 +733,7 @@ inline T ensure_allocated_impl(T ptr, const std::string& file, int line, */ #define GKO_THROW_IF_INVALID(_condition, _message) \ { \ - if (!_condition) { \ + if (!(_condition)) { \ throw ::gko::InvalidStateError(__FILE__, __LINE__, __func__, \ _message); \ } \