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

Unified Diff: components/query_parser/snippet.cc

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years 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 | « components/query_parser/snippet.h ('k') | components/query_parser/snippet_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/query_parser/snippet.cc
diff --git a/components/query_parser/snippet.cc b/components/query_parser/snippet.cc
index 2276e4acc772eb2d2b9986799fff7cf1d2e92e1a..b4840c61dfac4190aa5ffab67f3c7a1f33b740d7 100644
--- a/components/query_parser/snippet.cc
+++ b/components/query_parser/snippet.cc
@@ -4,6 +4,8 @@
#include "components/query_parser/snippet.h"
+#include <stdint.h>
+
#include <algorithm>
#include "base/logging.h"
@@ -153,8 +155,8 @@ bool IsNextMatchWithinSnippetWindow(icu::BreakIterator* bi,
// heuristics to speed things up if necessary, but it's not likely that
// we need to bother.
bi->next(kSnippetContext);
- int64 current = bi->current();
- return (next_match_start < static_cast<uint64>(current) ||
+ int64_t current = bi->current();
+ return (next_match_start < static_cast<uint64_t>(current) ||
current == icu::BreakIterator::DONE);
}
« no previous file with comments | « components/query_parser/snippet.h ('k') | components/query_parser/snippet_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698