From 3637f5eea43c62b33f9eab8e0388b9a0ecebd9a0 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 16 Jan 2022 11:58:21 -0800 Subject: [PATCH] scan_num: use a C99 bool for 'saw_rp' --- cmd/lefty/dot2l/dotlex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/lefty/dot2l/dotlex.c b/cmd/lefty/dot2l/dotlex.c index 8028a1fe2..ceddbd7c6 100644 --- a/cmd/lefty/dot2l/dotlex.c +++ b/cmd/lefty/dot2l/dotlex.c @@ -255,7 +255,7 @@ static char *scan_token (char *p) { static char *scan_num (char *p) { char *q, *z; - int saw_rp = FALSE; + bool saw_rp = false; bool saw_digit = false; z = p; @@ -263,7 +263,7 @@ static char *scan_num (char *p) { if (*z == '-') *q++ = *z++; if (*z == '.') { - saw_rp = TRUE; + saw_rp = true; *q++ = *z++; } while (isdigit (*z)) { -- 2.40.0