Skip to content

Commit

Permalink
cid#318975 help coverity see assert
Browse files Browse the repository at this point in the history
Signed-off-by: Caolán McNamara <[email protected]>
Change-Id: Ibf735e47362715d442c0122b9a29a0225d1cdc9a
  • Loading branch information
caolanm committed Oct 8, 2023
1 parent f5118df commit 201c748
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions common/Log.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,7 @@ static constexpr std::size_t skipPathPrefix(const char (&s)[N], std::size_t n =
#define LOG_ASSERT_INTERNAL(condition, message, LOG) \
do \
{ \
auto&& cond##__LINE__ = !!(condition); \
if (!cond##__LINE__) \
if (!(condition)) \
{ \
std::ostringstream oss##__LINE__; \
oss##__LINE__ << message; \
Expand Down

0 comments on commit 201c748

Please sign in to comment.