diff --git a/socketft.h b/socketft.h index 2ebee4db..825680d0 100644 --- a/socketft.h +++ b/socketft.h @@ -94,7 +94,7 @@ public: {if (result == static_cast(SOCKET_ERROR)) HandleError(operation);} #ifdef USE_WINDOWS_STYLE_SOCKETS void CheckAndHandleError(const char *operation, BOOL result) const - {CRYPTOPP_ASSERT(result==TRUE || result==FALSE); if (!result) HandleError(operation);} + {if (!result) HandleError(operation);} void CheckAndHandleError(const char *operation, bool result) const {if (!result) HandleError(operation);} #endif diff --git a/winpipes.h b/winpipes.h index f7335ffe..d98cbf62 100644 --- a/winpipes.h +++ b/winpipes.h @@ -55,7 +55,7 @@ protected: virtual HANDLE GetHandle() const =0; virtual void HandleError(const char *operation) const; void CheckAndHandleError(const char *operation, BOOL result) const - {CRYPTOPP_ASSERT(result==TRUE || result==FALSE); if (!result) HandleError(operation);} + {if (!result) HandleError(operation);} }; //! \brief Pipe-based implementation of NetworkReceiver