From daa816fc2e7c6cbb669ba030d45dd979ef37f7c2 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 15 Dec 2018 17:19:47 +0300 Subject: Fix line counting in cc::lexer --- build2/cc/lexer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build2/cc') diff --git a/build2/cc/lexer.cxx b/build2/cc/lexer.cxx index d1a9115..15627c7 100644 --- a/build2/cc/lexer.cxx +++ b/build2/cc/lexer.cxx @@ -118,7 +118,7 @@ namespace build2 // Increment the logical line similar to how base will increment the // physical (the column counts are the same). // - if (log_line_ && c == '\n' && !unget_ && !unpeek_) + if (log_line_ && c == '\n' && !unget_) ++*log_line_; base::get (c); -- cgit v1.1