From 6a35630b1d52a473679b65a1608377421bb753e0 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 17 Apr 2021 16:36:12 -0700 Subject: [PATCH] use C99 bools in _greater_than --- lib/ortho/trap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ortho/trap.h b/lib/ortho/trap.h index f62d4bf1f..273e6bff9 100644 --- a/lib/ortho/trap.h +++ b/lib/ortho/trap.h @@ -49,6 +49,6 @@ typedef struct { (FP_EQUAL((v0)->y, (v1)->y) && FP_EQUAL((v0)->x, (v1)->x)) #define _greater_than(v0, v1) \ - (((v0)->y > (v1)->y + C_EPS) ? TRUE : (((v0)->y < (v1)->y - C_EPS) ? FALSE : ((v0)->x > (v1)->x))) + (((v0)->y > (v1)->y + C_EPS) ? true : (((v0)->y < (v1)->y - C_EPS) ? false : ((v0)->x > (v1)->x))) extern int construct_trapezoids(int, segment_t*, int*, int, trap_t*); -- 2.40.0