summaryrefslogtreecommitdiff
path: root/TAO/examples/POA/On_Demand_Loading/Servant_Manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/POA/On_Demand_Loading/Servant_Manager.cpp')
-rw-r--r--TAO/examples/POA/On_Demand_Loading/Servant_Manager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/TAO/examples/POA/On_Demand_Loading/Servant_Manager.cpp b/TAO/examples/POA/On_Demand_Loading/Servant_Manager.cpp
index 7928d3143f9..ee712b7df80 100644
--- a/TAO/examples/POA/On_Demand_Loading/Servant_Manager.cpp
+++ b/TAO/examples/POA/On_Demand_Loading/Servant_Manager.cpp
@@ -81,7 +81,7 @@ ServantManager_i::obtain_servant (const char *str,
// Cannot go from void* to function pointer directly. Cast the void*
// to long first.
void *symbol = dll->symbol (create_symbol_.c_str ());
- intptr_t function = reinterpret_cast<intptr_t> (symbol);
+ long function = reinterpret_cast<long> (symbol);
SERVANT_FACTORY servant_creator =
reinterpret_cast<SERVANT_FACTORY> (function);