summaryrefslogtreecommitdiff
path: root/tests/Reactor_Timer_Test.cpp
diff options
context:
space:
mode:
authorelliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-05-06 14:19:49 +0000
committerelliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-05-06 14:19:49 +0000
commit45170f62740738ba98101b5e89ece07a2a6a06bd (patch)
tree4268a6dcb8728f0000c0201cb7b42270e85ec335 /tests/Reactor_Timer_Test.cpp
parente50ab63db837888134b39c243b82dcc04bb603d0 (diff)
downloadATCD-45170f62740738ba98101b5e89ece07a2a6a06bd.tar.gz
ChangeLogTag: Tue May 6 09:19:07 2003 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'tests/Reactor_Timer_Test.cpp')
-rw-r--r--tests/Reactor_Timer_Test.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/Reactor_Timer_Test.cpp b/tests/Reactor_Timer_Test.cpp
index 9d33711383a..b8b633f260e 100644
--- a/tests/Reactor_Timer_Test.cpp
+++ b/tests/Reactor_Timer_Test.cpp
@@ -79,7 +79,8 @@ int
Time_Handler::handle_timeout (const ACE_Time_Value &tv,
const void *arg)
{
- long current_count = ACE_reinterpret_cast (long, arg);
+ long current_count = ACE_static_cast (long,
+ ACE_reinterpret_cast (size_t, arg));
if (current_count >= 0)
ACE_ASSERT (current_count == count);
@@ -129,7 +130,7 @@ test_registering_all_handlers (void)
Time_Handler rt[ACE_MAX_TIMERS];
int t_id[ACE_MAX_TIMERS];
- for (u_long i = 0; i < ACE_MAX_TIMERS; i++)
+ for (size_t i = 0; i < ACE_MAX_TIMERS; i++)
{
t_id[i] =
ACE_Reactor::instance ()->schedule_timer (&rt[i],
@@ -155,7 +156,7 @@ test_registering_one_handler (void)
done = 0;
count = 0;
- for (u_long i = 0; (u_long) i < ACE_MAX_TIMERS; i++)
+ for (size_t i = 0; i < ACE_MAX_TIMERS; i++)
{
t_id[i] =
ACE_Reactor::instance ()->schedule_timer (&rt[0],
@@ -181,7 +182,7 @@ test_canceling_odd_timers (void)
count = 1;
odd = 1;
- for (u_long i = 0; i < ACE_MAX_TIMERS; i++)
+ for (size_t i = 0; i < ACE_MAX_TIMERS; i++)
{
t_id[i] = ACE_Reactor::instance ()->schedule_timer (&rt[i],
(const void *) i,