diff options
author | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-09-01 22:55:54 +0000 |
---|---|---|
committer | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-09-01 22:55:54 +0000 |
commit | 656d9eb06f808a742f347d7307543b040ff46112 (patch) | |
tree | 923b19758b7ebd16f25d085b39e97e1ceb1bd0eb /ace/Timer_Heap_T.cpp | |
parent | 685c895684f856385a371a64d5bef3e59e549c34 (diff) | |
download | ATCD-656d9eb06f808a742f347d7307543b040ff46112.tar.gz |
Now checks for < 0 instead of == -1
Diffstat (limited to 'ace/Timer_Heap_T.cpp')
-rw-r--r-- | ace/Timer_Heap_T.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ace/Timer_Heap_T.cpp b/ace/Timer_Heap_T.cpp index f2a732a5e34..fb495f0245b 100644 --- a/ace/Timer_Heap_T.cpp +++ b/ace/Timer_Heap_T.cpp @@ -562,7 +562,7 @@ ACE_Timer_Heap_T<TYPE, FUNCTOR, LOCK>::cancel (long timer_id, long timer_node_slot = this->timer_ids_[timer_id]; - if (timer_node_slot == -1) // Check to see if timer_id is still valid. + if (timer_node_slot < 0) // Check to see if timer_id is still valid. return 0; if (timer_id != this->heap_[timer_node_slot]->get_timer_id ()) |