diff options
-rw-r--r-- | ACE/ChangeLog | 5 | ||||
-rw-r--r-- | ACE/protocols/tests/INet/MT_Get/Main.cpp | 3 |
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; ") |