From 864f7a0ceb89bd28b842ec5e0d0ed6abf112be9c Mon Sep 17 00:00:00 2001 From: weidai Date: Mon, 13 Mar 2006 13:26:41 +0000 Subject: fix MSVC 2005 warnings git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@217 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- test.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test.cpp') diff --git a/test.cpp b/test.cpp index 66827db..e5ef22c 100644 --- a/test.cpp +++ b/test.cpp @@ -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 pMac(NewIntegrityCheckingMAC()); pMac->Update(buf.begin(), macPos); pMac->Update(buf.begin() + macPos + sizeof(dummyMac), fileSize - sizeof(dummyMac) - macPos); -- cgit v1.2.1