summaryrefslogtreecommitdiff
path: root/test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test.cpp')
-rw-r--r--test.cpp4
1 files changed, 3 insertions, 1 deletions
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<MessageAuthenticationCode> pMac(NewIntegrityCheckingMAC());
pMac->Update(buf.begin(), macPos);
pMac->Update(buf.begin() + macPos + sizeof(dummyMac), fileSize - sizeof(dummyMac) - macPos);