aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-07-24 17:54:41 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-07-24 17:54:41 +0300
commit7027454d7ea82f979103626d74db4b5b4067c123 (patch)
treeafe291408d5db3d6a42e03acf0afaecac362e191
parentd3c35157e24079d539aa94f009c2332baea05c07 (diff)
Get rid of VC warnings
-rw-r--r--build2/cc/lexer.cxx12
1 files changed, 6 insertions, 6 deletions
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<int> (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<int> (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<int> (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<int> (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<int> (n)); column += n;
}
if (!nl)
@@ -1044,7 +1044,7 @@ namespace build2
++column;
}
- gptr_ = p; buf_->gbump (p - b);
+ gptr_ = p; buf_->gbump (static_cast<int> (p - b));
}
continue;
}