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

Unified Diff: chrome/browser/history/snippet.cc

Issue 160288: Assorted fixes for 64-bit. (Closed)
Patch Set: Created 11 years, 5 months 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
Index: chrome/browser/history/snippet.cc
diff --git a/chrome/browser/history/snippet.cc b/chrome/browser/history/snippet.cc
index 10e1481df3a3a35198332146b6d7910bbec734dd..c55761dd1f437c2699ef0428ecc58ed598ab5c6e 100644
--- a/chrome/browser/history/snippet.cc
+++ b/chrome/browser/history/snippet.cc
@@ -150,8 +150,9 @@ bool IsNextMatchWithinSnippetWindow(BreakIterator* bi,
// heuristics to speed things up if necessary, but it's not likely that
// we need to bother.
bi->next(kSnippetContext);
- int64_t current = bi->current();
- return (next_match_start < current || current == BreakIterator::DONE);
+ int64 current = bi->current();
+ return (next_match_start < static_cast<uint64>(current) ||
Evan Martin 2009/07/28 21:15:29 this looks suspicious for 32-bit. but all of this
+ current == BreakIterator::DONE);
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698