summaryrefslogtreecommitdiff
path: root/misc.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2006-07-30 17:15:01 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2006-07-30 17:15:01 +0000
commit7d853c5eae67c4339ade52fc1bbd46513f1724b8 (patch)
treeb2ed0b84682ae41c47d38ed59b8b7efbc8905c19 /misc.h
parent6517f9f14413828a88d939c789bb0335b44a9848 (diff)
downloadcryptopp-7d853c5eae67c4339ade52fc1bbd46513f1724b8.tar.gz
change DLL integrity self-test to allow DLL to be Authenticode signed
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@233 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'misc.h')
-rw-r--r--misc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc.h b/misc.h
index a2119bf..0815c16 100644
--- a/misc.h
+++ b/misc.h
@@ -224,7 +224,7 @@ template <class T1, class T2>
inline bool SafeConvert(T1 from, T2 &to)
{
to = (T2)from;
- if (from != to || (from > 0 && to < 0))
+ if (from != to || (from > 0) != (to > 0))
return false;
return true;
}