summaryrefslogtreecommitdiff
path: root/TAO/tests/File_IO/File_i.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/File_IO/File_i.cpp')
-rw-r--r--TAO/tests/File_IO/File_i.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/TAO/tests/File_IO/File_i.cpp b/TAO/tests/File_IO/File_i.cpp
index 62ee922a07c..1776c7394c0 100644
--- a/TAO/tests/File_IO/File_i.cpp
+++ b/TAO/tests/File_IO/File_i.cpp
@@ -18,7 +18,6 @@
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_fcntl.h"
#include "ace/OS_NS_unistd.h"
-#include "ace/Truncate.h"
// IDL File::System constructor
FileImpl::System::System (PortableServer::POA_ptr poa)
@@ -59,7 +58,7 @@ FileImpl::System::open (const char *file_name,
// convert ACE_HANDLE to a string
ACE_OS::sprintf (file_descriptor_buffer,
"%ld",
- ACE_Utils::truncate_cast<long int> ((intptr_t)file_descriptor));
+ (long int) file_descriptor);
//Create an objectID from the ACE_HANDLE string
PortableServer::ObjectId_var oid =
@@ -144,7 +143,7 @@ FileImpl::Descriptor::fd (void)
PortableServer::ObjectId_to_string (oid1.in ());
// Get the ACE_HANDLE from the string
- return (ACE_HANDLE)(intptr_t)ACE_OS::atol (s.in ());
+ return (ACE_HANDLE) ACE_OS::atol (s.in ());
}
CORBA::Long