diff --git a/misc.h b/misc.h index 7a93ef98..f0df03c2 100644 --- a/misc.h +++ b/misc.h @@ -379,8 +379,10 @@ template inline bool SafeConvert(T1 from, T2 &to) { to = (T2)from; - if (from != to || (from > 0) != (to > 0)) - return false; + if (from != to || (from > 0) != (to > 0)) { + CRYPTOPP_ASSERT(false); return false; + } + return true; }