Remove a warning about signed to unsigned comparaison.
This commit was SVN r23935.
Этот коммит содержится в:
родитель
b9a06afd98
Коммит
c2e40f8616
@ -95,7 +95,7 @@ int min_heap_elt_is_top(const struct event *e)
|
|||||||
|
|
||||||
int min_heap_erase(min_heap_t* s, struct event* e)
|
int min_heap_erase(min_heap_t* s, struct event* e)
|
||||||
{
|
{
|
||||||
if (((unsigned int)-1) != e->ev_timeout_pos.min_heap_idx)
|
if (((int)-1) != e->ev_timeout_pos.min_heap_idx)
|
||||||
{
|
{
|
||||||
struct event *last = s->p[--s->n];
|
struct event *last = s->p[--s->n];
|
||||||
unsigned parent = (e->ev_timeout_pos.min_heap_idx - 1) / 2;
|
unsigned parent = (e->ev_timeout_pos.min_heap_idx - 1) / 2;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user