summaryrefslogtreecommitdiff
path: root/ACE/examples
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/examples')
-rw-r--r--ACE/examples/Service_Configurator/IPC-tests/server/Handle_Timeout.inl6
-rw-r--r--ACE/examples/Shared_Malloc/test_position_independent_malloc.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/ACE/examples/Service_Configurator/IPC-tests/server/Handle_Timeout.inl b/ACE/examples/Service_Configurator/IPC-tests/server/Handle_Timeout.inl
index 346a22e773c..a5f1421b8b9 100644
--- a/ACE/examples/Service_Configurator/IPC-tests/server/Handle_Timeout.inl
+++ b/ACE/examples/Service_Configurator/IPC-tests/server/Handle_Timeout.inl
@@ -31,7 +31,7 @@ Handle_Timeout::init (int argc, ACE_TCHAR *argv[])
ACE_Time_Value delta (10);
ACE_Time_Value interval (1);
ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("a:d:i:"), 0);
- int arg = 0;
+ intptr_t arg = 0;
for (int c; (c = get_opt ()) != -1; )
switch (c)
@@ -51,8 +51,8 @@ Handle_Timeout::init (int argc, ACE_TCHAR *argv[])
if (ACE_Reactor::instance ()->schedule_timer (this,
reinterpret_cast<void *> (arg),
- delta,
- interval) == -1)
+ delta,
+ interval) == -1)
return -1;
else
return 0;
diff --git a/ACE/examples/Shared_Malloc/test_position_independent_malloc.cpp b/ACE/examples/Shared_Malloc/test_position_independent_malloc.cpp
index b4c66e54957..3da3436377e 100644
--- a/ACE/examples/Shared_Malloc/test_position_independent_malloc.cpp
+++ b/ACE/examples/Shared_Malloc/test_position_independent_malloc.cpp
@@ -129,7 +129,7 @@ parse_args (int argc, ACE_TCHAR *argv[])
{
case 'a':
// Override the default base address.
- base_addr = reinterpret_cast<void *> (ACE_OS::atoi (get_opt.opt_arg ()));
+ base_addr = reinterpret_cast<void *> (static_cast<intptr_t> (ACE_OS::atoi (get_opt.opt_arg ())));
break;
case 'T':
#if defined (ACE_HAS_TRACE)