Fix signed/unsigned warning.

This commit is contained in:
chris 2004-09-22 14:27:35 +00:00
parent c7836e5a2c
commit f477409a08

View File

@ -246,8 +246,8 @@ private:
void remove_timer(timer_base* t)
{
// Remove the timer from the heap.
int index = t->heap_index_;
if (index >= 0 && index < heap_.size())
size_t index = t->heap_index_;
if (!heap_.empty() && index < heap_.size())
{
if (index == heap_.size() - 1)
{