summaryrefslogtreecommitdiff
path: root/test.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2006-04-06 21:20:25 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2006-04-06 21:20:25 +0000
commit82c4eb38804e011cfd855bc9e292f7533bfe4c2f (patch)
tree34dba126863f587607debfecab883867f5f2d3dd /test.cpp
parent4c4b05b70d06e818417f6b4f879183a2f233c91b (diff)
downloadcryptopp-82c4eb38804e011cfd855bc9e292f7533bfe4c2f.tar.gz
merge in changes by denis bider and fix compile on gcc 3.4.4 and MSVC 6
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@219 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'test.cpp')
-rw-r--r--test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test.cpp b/test.cpp
index e5ef22c..6ac7f4b 100644
--- a/test.cpp
+++ b/test.cpp
@@ -192,7 +192,7 @@ int __cdecl main(int argc, char *argv[])
return 1;
}
- unsigned int macPos = unsigned int(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);
@@ -683,8 +683,8 @@ void ForwardTcpPort(const char *sourcePortName, const char *destinationHost, con
{
waitObjects.Clear();
- out.GetWaitObjects(waitObjects);
- in.GetWaitObjects(waitObjects);
+ out.GetWaitObjects(waitObjects, CallStack("ForwardTcpPort - out", NULL));
+ in.GetWaitObjects(waitObjects, CallStack("ForwardTcpPort - in", NULL));
waitObjects.Wait(INFINITE_TIME);