diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2006-03-13 13:26:41 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2006-03-13 13:26:41 +0000 |
commit | 864f7a0ceb89bd28b842ec5e0d0ed6abf112be9c (patch) | |
tree | f30468f446dfdde7bc27bc6c82de67f227721b05 /test.cpp | |
parent | fc3a5e7e8f632112420df1d99f0d2080f19477d0 (diff) | |
download | cryptopp-864f7a0ceb89bd28b842ec5e0d0ed6abf112be9c.tar.gz |
fix MSVC 2005 warnings
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@217 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'test.cpp')
-rw-r--r-- | test.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,6 +1,8 @@ // test.cpp - written and placed in the public domain by Wei Dai +#define _CRT_SECURE_NO_DEPRECATE #define CRYPTOPP_DEFAULT_NO_DLL + #include "dll.h" #include "md5.h" #include "ripemd.h" @@ -190,7 +192,7 @@ int __cdecl main(int argc, char *argv[]) return 1; } - unsigned int macPos = found-buf.begin(); + unsigned int macPos = unsigned int(found-buf.begin()); member_ptr<MessageAuthenticationCode> pMac(NewIntegrityCheckingMAC()); pMac->Update(buf.begin(), macPos); pMac->Update(buf.begin() + macPos + sizeof(dummyMac), fileSize - sizeof(dummyMac) - macPos); |