From 9ffe9af3ce306990e4256e4ade3a490591799313 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 13 Dec 2019 23:46:08 -0800 Subject: listener: C++ enum issue. * parser.c (is_balanced_line): don't initialize an "enum state" variable with 0, but with the equivalent enum constant. --- parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parser.c') diff --git a/parser.c b/parser.c index 312c5476..ba862eb2 100644 --- a/parser.c +++ b/parser.c @@ -1157,7 +1157,7 @@ static int is_balanced_line(const wchar_t *line, void *ctx) break; case ')': case ']': case '}': { - enum state match = 0; + enum state match = ST_START; switch (ch) { case ')': match = ST_PAR; break; case ']': match = ST_BKT; break; -- cgit v1.2.3