summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibuv/src/timer.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-04-29 12:21:02 (GMT)
committerBrad King <brad.king@kitware.com>2020-04-29 12:21:02 (GMT)
commitefdd451f4bbf704097c95d6ca8cfd8f27cd3e87d (patch)
tree0dd89f8a2ba33d3d947993af591ab9ab7d0bac49 /Utilities/cmlibuv/src/timer.c
parent959acdc9e6af291b7f8c3ac530496322745385a2 (diff)
parentd355f401d79848a80acc0df296f168bad28d5c95 (diff)
downloadCMake-efdd451f4bbf704097c95d6ca8cfd8f27cd3e87d.zip
CMake-efdd451f4bbf704097c95d6ca8cfd8f27cd3e87d.tar.gz
CMake-efdd451f4bbf704097c95d6ca8cfd8f27cd3e87d.tar.bz2
Merge branch 'upstream-libuv' into update-libuv
* upstream-libuv: libuv 2020-04-29 (e7ebae26)
Diffstat (limited to 'Utilities/cmlibuv/src/timer.c')
-rw-r--r--Utilities/cmlibuv/src/timer.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/Utilities/cmlibuv/src/timer.c b/Utilities/cmlibuv/src/timer.c
index 9da513f..4cf4ed4 100644
--- a/Utilities/cmlibuv/src/timer.c
+++ b/Utilities/cmlibuv/src/timer.c
@@ -51,12 +51,7 @@ static int timer_less_than(const struct heap_node* ha,
/* Compare start_id when both have the same timeout. start_id is
* allocated with loop->timer_counter in uv_timer_start().
*/
- if (a->start_id < b->start_id)
- return 1;
- if (b->start_id < a->start_id)
- return 0;
-
- return 0;
+ return a->start_id < b->start_id;
}