aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/assert.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/utils/assert.h')
-rw-r--r--src/lib/utils/assert.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/utils/assert.h b/src/lib/utils/assert.h
index 60b9ba88a..97924174e 100644
--- a/src/lib/utils/assert.h
+++ b/src/lib/utils/assert.h
@@ -65,7 +65,7 @@ void BOTAN_DLL assertion_failure(const char* expr_str,
*/
#define BOTAN_ASSERT_NONNULL(ptr) \
do { \
- if(static_cast<bool>(ptr) == false) \
+ if((ptr) == nullptr) \
Botan::assertion_failure(#ptr " is not null", \
"", \
BOTAN_CURRENT_FUNCTION, \