summaryrefslogtreecommitdiffstats
path: root/components/query_parser/snippet.cc
diff options
context:
space:
mode:
Diffstat (limited to 'components/query_parser/snippet.cc')
-rw-r--r--components/query_parser/snippet.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/query_parser/snippet.cc b/components/query_parser/snippet.cc
index 2276e4a..b4840c6 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);
}