From 58d41008806985b1594d1a6f89daf74712d4f596 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 17 Apr 2021 22:07:57 -0700 Subject: [PATCH] use a stronger return type for PQempty --- lib/neatogen/heap.c | 3 ++- lib/neatogen/heap.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/neatogen/heap.c b/lib/neatogen/heap.c index 88d055223..0ad0b998e 100644 --- a/lib/neatogen/heap.c +++ b/lib/neatogen/heap.c @@ -10,6 +10,7 @@ #include +#include #include #include @@ -74,7 +75,7 @@ void PQdelete(Halfedge * he) } -int PQempty(void) +bool PQempty(void) { return PQcount == 0; } diff --git a/lib/neatogen/heap.h b/lib/neatogen/heap.h index adac235d1..8c5350530 100644 --- a/lib/neatogen/heap.h +++ b/lib/neatogen/heap.h @@ -15,12 +15,13 @@ extern "C" { #endif #include +#include extern void PQinitialize(void); extern void PQcleanup(void); extern Halfedge *PQextractmin(void); extern Point PQ_min(void); - extern int PQempty(void); + extern bool PQempty(void); extern void PQdelete(Halfedge *); extern void PQinsert(Halfedge *, Site *, double); -- 2.40.0