aboutsummaryrefslogtreecommitdiff
path: root/build2/cc
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-12-15 17:19:47 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-12-15 17:19:47 +0300
commitdaa816fc2e7c6cbb669ba030d45dd979ef37f7c2 (patch)
treee184a19e2033a997539a81f9045ad0da6fbcf219 /build2/cc
parentffd31a88c349661bd624661f76492e70e287b845 (diff)
Fix line counting in cc::lexer
Diffstat (limited to 'build2/cc')
-rw-r--r--build2/cc/lexer.cxx2
1 files changed, 1 insertions, 1 deletions
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);