From: Matthew Fernandez Date: Sun, 16 Jan 2022 19:58:21 +0000 (-0800) Subject: scan_num: use a C99 bool for 'saw_rp' X-Git-Tag: 3.0.0~54^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3637f5eea43c62b33f9eab8e0388b9a0ecebd9a0;p=graphviz scan_num: use a C99 bool for 'saw_rp' --- 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)) {