Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1096)

Unified Diff: src/scanner.h

Issue 390004: Fix warnings on Win64. (Closed)
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/api.cc ('K') | « src/runtime.cc ('k') | src/scopeinfo.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scanner.h
diff --git a/src/scanner.h b/src/scanner.h
index dc903cd6afc7181334bc4afebcc3d1923fb57c60..9d7b34e7cadf2e335f0d27992c7855d0f9019e7a 100644
--- a/src/scanner.h
+++ b/src/scanner.h
@@ -60,7 +60,7 @@ class UTF8Buffer {
int pos() const {
ASSERT_NOT_NULL(data_);
- return cursor_ - data_;
+ return static_cast<int>(cursor_ - data_);
}
char* data() const { return data_; }
@@ -73,7 +73,7 @@ class UTF8Buffer {
int Capacity() const {
ASSERT_NOT_NULL(data_);
- return (limit_ - data_) + unibrow::Utf8::kMaxEncodedSize;
+ return static_cast<int>(limit_ - data_) + unibrow::Utf8::kMaxEncodedSize;
}
static char* ComputeLimit(char* data, int capacity) {
« src/api.cc ('K') | « src/runtime.cc ('k') | src/scopeinfo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698