Update of /cvsroot/boost/boost/boost/asio/detail
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv18829/detail
Modified Files:
timer_queue.hpp
Log Message:
Fix bug in timer heap management.
Index: timer_queue.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/asio/detail/timer_queue.hpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- timer_queue.hpp 4 Jan 2007 05:53:01 -0000 1.4
+++ timer_queue.hpp 22 Apr 2007 07:42:59 -0000 1.5
@@ -310,7 +310,8 @@
swap_heap(index, heap_.size() - 1);
heap_.pop_back();
size_t parent = (index - 1) / 2;
- if (index > 0 && Time_Traits::less_than(t->time_,
heap_[parent]->time_))
+ if (index > 0 && Time_Traits::less_than(
+ heap_[index]->time_, heap_[parent]->time_))
up_heap(index);
else
down_heap(index);
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs