summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormcorino <mcorino@users.noreply.github.com>2010-06-30 14:58:33 +0000
committermcorino <mcorino@users.noreply.github.com>2010-06-30 14:58:33 +0000
commitf5de3e12ccc2d0a1ba9dd3b06fea1de8cb1d0643 (patch)
tree9a7a1b399bc9efcbc620a33d28b64e9046ba34b8
parent9970e4265d53aff07c09906c118c479c411eff83 (diff)
downloadATCD-f5de3e12ccc2d0a1ba9dd3b06fea1de8cb1d0643.tar.gz
Wed Jun 30 14:57:30 UTC 2010 Martin Corino <mcorino@remedy.nl>
* protocols/tests/INet/MT_Get/Main.cpp: Fixed truncation warnings.
-rw-r--r--ACE/ChangeLog5
-rw-r--r--ACE/protocols/tests/INet/MT_Get/Main.cpp3
2 files changed, 7 insertions, 1 deletions
diff --git a/ACE/ChangeLog b/ACE/ChangeLog
index d2a4236e075..36c82823b06 100644
--- a/ACE/ChangeLog
+++ b/ACE/ChangeLog
@@ -1,3 +1,8 @@
+Wed Jun 30 14:57:30 UTC 2010 Martin Corino <mcorino@remedy.nl>
+
+ * protocols/tests/INet/MT_Get/Main.cpp:
+ Fixed truncation warnings.
+
Tue Jun 29 11:19:30 UTC 2010 Martin Corino <mcorino@remedy.nl>
* protocols/tests/INet/MT_Get/Main.cpp:
diff --git a/ACE/protocols/tests/INet/MT_Get/Main.cpp b/ACE/protocols/tests/INet/MT_Get/Main.cpp
index 8a39603e81f..9c2ca26b2c9 100644
--- a/ACE/protocols/tests/INet/MT_Get/Main.cpp
+++ b/ACE/protocols/tests/INet/MT_Get/Main.cpp
@@ -7,6 +7,7 @@
#include "ace/INet/HTTP_URL.h"
#include "ace/INet/HTTP_ClientRequestHandler.h"
#include "ace/INet/String_IOStream.h"
+#include "ace/Truncate.h"
#include <iostream>
size_t n_threads = 3;
@@ -253,7 +254,7 @@ ACE_TMAIN (int, ACE_TCHAR *[])
ACE_Thread_Manager::instance ()->wait ();
// All threads should have resulted in the same data...
- if (get_task.results ().size () != n_threads)
+ if (get_task.results ().size () != ACE_Utils::truncate_cast<size_t> (n_threads))
{
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("%d results found; ")