diff options
Diffstat (limited to 'TAO/performance-tests/POA/Object_Creation_And_Registration/registration.cpp')
-rw-r--r-- | TAO/performance-tests/POA/Object_Creation_And_Registration/registration.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/TAO/performance-tests/POA/Object_Creation_And_Registration/registration.cpp b/TAO/performance-tests/POA/Object_Creation_And_Registration/registration.cpp index eb4703c1899..3e769711f33 100644 --- a/TAO/performance-tests/POA/Object_Creation_And_Registration/registration.cpp +++ b/TAO/performance-tests/POA/Object_Creation_And_Registration/registration.cpp @@ -20,7 +20,6 @@ #include "tao/ORB_Core.h" #include "ace/Profile_Timer.h" #include "ace/Get_Opt.h" -#include "ace/Truncate.h" // // The following macros help take a very precise look into the @@ -173,7 +172,7 @@ reverse_map_effectiveness (test_i *servants) // Calculate the effectiveness of the hash. for (i = 0; i < iterations; i++) { - u_long hash_index = ACE_Utils::truncate_cast<u_long> ((intptr_t)&servants[i]) % active_object_map_size; + u_long hash_index = u_long (&servants[i]) % active_object_map_size; hash_counter[hash_index]++; } |