]> granicus.if.org Git - graphviz/commitdiff
use C99 bools in _greater_than
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 17 Apr 2021 23:36:12 +0000 (16:36 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 24 Apr 2021 01:35:43 +0000 (18:35 -0700)
lib/ortho/trap.h

index f62d4bf1f630a104506856d818c14f4eaa82c302..273e6bff964bbab37f7bb2c7011e0aaa0bdefb21 100644 (file)
@@ -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*);