aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/assert.h
diff options
context:
space:
mode:
authorgit <[email protected]>2015-04-08 04:04:55 +0000
committerlloyd <[email protected]>2015-04-08 04:04:55 +0000
commit62947773cedb0c9534c5df91271db9a9414e6e2a (patch)
treeb1a891aca42784136ed58e0d0b90c81159caf0f6 /src/lib/utils/assert.h
parent4eccc8f01e9ce6ce72b90731dc72cb30d383f0aa (diff)
Fix code that triggers a strange MSVC 'performance warning'
Github pull 74 from Chris Desjardins
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, \