Skip to content

Commit

Permalink
Fix warning in exception
Browse files Browse the repository at this point in the history
  • Loading branch information
pratikvn committed Aug 2, 2023
1 parent e6ff101 commit 40ea6d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ginkgo/core/base/exception_helpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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); \
} \
Expand Down

0 comments on commit 40ea6d9

Please sign in to comment.