From 51772e17f808894d5d99e30df7b83ef95de59918 Mon Sep 17 00:00:00 2001 From: weidai Date: Tue, 12 Dec 2006 07:12:30 +0000 Subject: [PATCH] remove GCC warning --- trunk/c5/misc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/c5/misc.h b/trunk/c5/misc.h index 35462b8b..1c812587 100644 --- a/trunk/c5/misc.h +++ b/trunk/c5/misc.h @@ -141,7 +141,7 @@ template inline const T& STDMIN(const T& a, const T& b) template inline const T1 UnsignedMin(const T1& a, const T2& b) { CRYPTOPP_COMPILE_ASSERT((sizeof(T1)<=sizeof(T2) && T2(-1)>0) || (sizeof(T1)>sizeof(T2) && T1(-1)>0)); - assert(a>=0); + assert(a==0 || a>0); // GCC workaround: get rid of the warning "comparison is always true due to limited range of data type" assert(b>=0); if (sizeof(T1)<=sizeof(T2))