summaryrefslogtreecommitdiff
path: root/TAO/tests/POA/Default_Servant2/File_i.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/POA/Default_Servant2/File_i.cpp')
-rw-r--r--TAO/tests/POA/Default_Servant2/File_i.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/TAO/tests/POA/Default_Servant2/File_i.cpp b/TAO/tests/POA/Default_Servant2/File_i.cpp
index 8dadb95ddd7..ce33dc83da1 100644
--- a/TAO/tests/POA/Default_Servant2/File_i.cpp
+++ b/TAO/tests/POA/Default_Servant2/File_i.cpp
@@ -18,6 +18,7 @@
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_fcntl.h"
#include "ace/OS_NS_unistd.h"
+#include "ace/Truncate.h"
#include "tao/PortableServer/PortableServer.h"
// IDL File::System constructor
@@ -60,7 +61,7 @@ FileImpl::System::open (const char *file_name,
// convert ACE_HANDLE to a string
ACE_OS::sprintf (file_descriptor_buffer,
"%ld",
- (long int) file_descriptor);
+ ACE_Utils::truncate_cast<long int> ((intptr_t)file_descriptor));
//Create an objectID from the ACE_HANDLE string
PortableServer::ObjectId_var oid =