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

Unified Diff: chrome/browser/printing/page_number.cc

Issue 2890: Include chrome/browser/SConscript in Linux build.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years, 3 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
« no previous file with comments | « chrome/browser/net/dns_host_info.cc ('k') | chrome/browser/printing/page_setup.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/printing/page_number.cc
===================================================================
--- chrome/browser/printing/page_number.cc (revision 2262)
+++ chrome/browser/printing/page_number.cc (working copy)
@@ -56,7 +56,8 @@
++page_number_;
// Page ranges are inclusive.
if (page_number_ > (*ranges_)[page_range_index_].to) {
- if (++page_range_index_ == ranges_->size()) {
+ DCHECK(ranges_->size() <= std::numeric_limits<int>::max());
+ if (++page_range_index_ == static_cast<int>(ranges_->size())) {
// Finished.
*this = npos();
} else {
« no previous file with comments | « chrome/browser/net/dns_host_info.cc ('k') | chrome/browser/printing/page_setup.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698