From 7027454d7ea82f979103626d74db4b5b4067c123 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 24 Jul 2017 17:54:41 +0300 Subject: Get rid of VC warnings --- build2/cc/lexer.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'build2/cc') diff --git a/build2/cc/lexer.cxx b/build2/cc/lexer.cxx index 2f7f1a3..a71bd4c 100644 --- a/build2/cc/lexer.cxx +++ b/build2/cc/lexer.cxx @@ -433,7 +433,7 @@ namespace build2 size_t n (p - b); id.append (b, n); cs_.append (b, n); - gptr_ = p; buf_->gbump (n); column += n; + gptr_ = p; buf_->gbump (static_cast (n)); column += n; } // If the following character is a quote, see if the identifier @@ -685,7 +685,7 @@ namespace build2 size_t n (p - b); cs_.append (b, n); - gptr_ = p; buf_->gbump (n); column += n; + gptr_ = p; buf_->gbump (static_cast (n)); column += n; } } @@ -863,7 +863,7 @@ namespace build2 size_t n (p - b); s.append (b, n); - gptr_ = p; buf_->gbump (n); column += n; + gptr_ = p; buf_->gbump (static_cast (n)); column += n; } } @@ -965,7 +965,7 @@ namespace build2 ++p) ; size_t n (p - b); - gptr_ = p; buf_->gbump (n); column += n; + gptr_ = p; buf_->gbump (static_cast (n)); column += n; continue; } @@ -996,7 +996,7 @@ namespace build2 ++p) ; size_t n (p - b); - gptr_ = p; buf_->gbump (n); column += n; + gptr_ = p; buf_->gbump (static_cast (n)); column += n; } if (!nl) @@ -1044,7 +1044,7 @@ namespace build2 ++column; } - gptr_ = p; buf_->gbump (p - b); + gptr_ = p; buf_->gbump (static_cast (p - b)); } continue; } -- cgit v1.1