summaryrefslogtreecommitdiff
path: root/TAO/tao/HTTP_Client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/HTTP_Client.cpp')
-rw-r--r--TAO/tao/HTTP_Client.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/TAO/tao/HTTP_Client.cpp b/TAO/tao/HTTP_Client.cpp
index bdf6b371d52..64f7f792068 100644
--- a/TAO/tao/HTTP_Client.cpp
+++ b/TAO/tao/HTTP_Client.cpp
@@ -4,6 +4,7 @@
#include "tao/HTTP_Handler.h"
#include "ace/OS_NS_string.h"
+#include "ace/Truncate.h"
#include "tao/debug.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
@@ -40,7 +41,7 @@ TAO_HTTP_Client::read (ACE_Message_Block *mb)
TAOLIB_ERROR_RETURN ((LM_ERROR, "TAO (%P|%t) - HTTP_Client::read, Connector error\n"), -1);
}
- return HTTP_reader.byte_count ();
+ return ACE_Utils::truncate_cast<int> (HTTP_reader.byte_count ());
}