diff options
Diffstat (limited to 'examples/Reactor/Misc/test_timer_queue.cpp')
-rw-r--r-- | examples/Reactor/Misc/test_timer_queue.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/examples/Reactor/Misc/test_timer_queue.cpp b/examples/Reactor/Misc/test_timer_queue.cpp index ea8fc456392..f9c5e465460 100644 --- a/examples/Reactor/Misc/test_timer_queue.cpp +++ b/examples/Reactor/Misc/test_timer_queue.cpp @@ -13,14 +13,16 @@ public: virtual int handle_timeout (const ACE_Time_Value &, const void *arg) { - ACE_DEBUG ((LM_DEBUG, - "yow, the time has come and gone %d times %d, Horatio!\n", - this->count_++, #if defined (ACE_HAS_64BIT_LONGS) - long (arg))); + int times = long (arg); #else /* ! ACE_HAS_64BIT_LONGS */ - int (arg))); + int times = int (arg); #endif /* ! ACE_HAS_64BIT_LONGS */ + + ACE_DEBUG ((LM_DEBUG, + "yow, the time has come and gone %d times %d, Horatio!\n", + this->count_++, + times)); return 0; } |