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

Unified Diff: src/parsing/scanner.cc

Issue 2481013010: [parser, serializer] Fix more -Wsign-compare warnings. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | src/parsing/scanner-character-streams.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/scanner.cc
diff --git a/src/parsing/scanner.cc b/src/parsing/scanner.cc
index cfc0410b83cc77cbb78984aba151113d94429633..363ab7dfe9915091bae9b1bb7fcbf85b2ad1e8d6 100644
--- a/src/parsing/scanner.cc
+++ b/src/parsing/scanner.cc
@@ -59,7 +59,7 @@ void Scanner::BookmarkScope::Apply() {
} else {
scanner_->SeekNext(bookmark_);
scanner_->Next();
- DCHECK_EQ(scanner_->location().beg_pos, bookmark_);
+ DCHECK_EQ(scanner_->location().beg_pos, static_cast<int>(bookmark_));
}
bookmark_ = kBookmarkWasApplied;
}
@@ -1638,7 +1638,7 @@ void Scanner::SeekNext(size_t position) {
// 3, re-scan, by scanning the look-ahead char + 1 token (next_).
c0_ = source_->Advance();
Next();
- DCHECK_EQ(next_.location.beg_pos, position);
+ DCHECK_EQ(next_.location.beg_pos, static_cast<int>(position));
}
} // namespace internal
« no previous file with comments | « no previous file | src/parsing/scanner-character-streams.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698