Skip to content
Snippets Groups Projects
Commit a8d96970 authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

Fixing heap_find() that i broke with the comparison function trim.

parent 647d4722
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,7 @@
static int compare_event_heap_nodes(event_t **e1, event_t **e2)
{
if (timercmp(&(*e1)->tv, &(*e2)->tv, <)) return -1;
if (timercmp(&(*e1)->tv, &(*e2)->tv, >)) return 1;
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment