diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2006-07-30 17:15:01 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2006-07-30 17:15:01 +0000 |
commit | 7d853c5eae67c4339ade52fc1bbd46513f1724b8 (patch) | |
tree | b2ed0b84682ae41c47d38ed59b8b7efbc8905c19 /misc.h | |
parent | 6517f9f14413828a88d939c789bb0335b44a9848 (diff) | |
download | cryptopp-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |