From 5c8d3fd31a794c1925ffc550e389b993e0deb18d Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Tue, 2 Aug 2022 18:01:57 -0700 Subject: [PATCH] gvpr validTVT: return a more appropriate type --- lib/gvpr/gprstate.c | 3 ++- lib/gvpr/gprstate.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/gvpr/gprstate.c b/lib/gvpr/gprstate.c index 2dcb0cde1..0b0b0384c 100644 --- a/lib/gvpr/gprstate.c +++ b/lib/gvpr/gprstate.c @@ -17,10 +17,11 @@ #include #include #include +#include static int name_used; -int validTVT(long long c) { +bool validTVT(long long c) { return ((TV_flat <= c) && (c <= TV_prepostrev)); } diff --git a/lib/gvpr/gprstate.h b/lib/gvpr/gprstate.h index 30417ea83..a26d2d403 100644 --- a/lib/gvpr/gprstate.h +++ b/lib/gvpr/gprstate.h @@ -17,6 +17,7 @@ extern "C" { #include #include "cgraph.h" #include +#include #include #include #include "gvpr.h" @@ -76,7 +77,7 @@ extern "C" { extern gvprbinding* findBinding(Gpr_t* state, char*); extern void closeGPRState(Gpr_t* state); extern void initGPRState(Gpr_t *, Vmalloc_t *); - extern int validTVT(long long); + extern bool validTVT(long long); #ifdef __cplusplus } -- 2.40.0