summaryrefslogtreecommitdiff
path: root/TAO/performance-tests
diff options
context:
space:
mode:
authormcorino <mcorino@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2013-03-30 09:43:50 +0000
committermcorino <mcorino@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2013-03-30 09:43:50 +0000
commit708b47b9acd0680161e2f88564140d4898fa764d (patch)
tree31782f575470a15530c45abb48baa87515c2c7d4 /TAO/performance-tests
parenta8feb21c0ba008c25694aeee12bee546529243f0 (diff)
downloadATCD-708b47b9acd0680161e2f88564140d4898fa764d.tar.gz
ChangelogTag: Sat Mar 30 09:39:40 UTC 2013 Martin Corino <mcorino@remedy.nl>
Diffstat (limited to 'TAO/performance-tests')
-rw-r--r--TAO/performance-tests/POA/Object_Creation_And_Registration/registration.cpp3
1 files changed, 2 insertions, 1 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 3e769711f33..eb4703c1899 100644
--- a/TAO/performance-tests/POA/Object_Creation_And_Registration/registration.cpp
+++ b/TAO/performance-tests/POA/Object_Creation_And_Registration/registration.cpp
@@ -20,6 +20,7 @@
#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
@@ -172,7 +173,7 @@ reverse_map_effectiveness (test_i *servants)
// Calculate the effectiveness of the hash.
for (i = 0; i < iterations; i++)
{
- u_long hash_index = u_long (&servants[i]) % active_object_map_size;
+ u_long hash_index = ACE_Utils::truncate_cast<u_long> ((intptr_t)&servants[i]) % active_object_map_size;
hash_counter[hash_index]++;
}