From b0627c5acecf8193abb07ee01f2cac9d1c3c08ec Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 20 Mar 2021 11:45:57 -0700 Subject: [PATCH] use a stronger type for backslash_pending variable --- lib/cgraph/write.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/cgraph/write.c b/lib/cgraph/write.c index 6c10fe20a..66253da30 100644 --- a/lib/cgraph/write.c +++ b/lib/cgraph/write.c @@ -58,7 +58,7 @@ static char *_agstrcanon(char *arg, char *buf) int cnt = 0, dotcnt = 0; bool needs_quotes = false; int maybe_num; - int backslash_pending = FALSE; + bool backslash_pending = false; static const char *tokenlist[] /* must agree with scan.l */ = { "node", "edge", "strict", "graph", "digraph", "subgraph", NULL @@ -109,7 +109,7 @@ static char *_agstrcanon(char *arg, char *buf) *p++ = '\\'; *p++ = '\n'; needs_quotes = true; - backslash_pending = FALSE; + backslash_pending = false; cnt = 0; } else if (uc && (cnt >= Max_outputline)) { if (!(is_id_char(p[-1]) || (p[-1] == '\\')) && is_id_char(uc)) { @@ -118,7 +118,7 @@ static char *_agstrcanon(char *arg, char *buf) needs_quotes = true; cnt = 0; } else { - backslash_pending = TRUE; + backslash_pending = true; } } } -- 2.40.0