Add explicit type conversions where necessary: printing/
These are cases that are implicitly narrowing today, and must do so explicitly in order to enable -Wc++11-narrowing. No behavior change intended. Bug: 1216696 Change-Id: I818ba239363a444204a27e8972da9c7ef1c993a4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2948005 Auto-Submit: Peter Kasting <pkasting@chromium.org> Commit-Queue: Rebekah Potter <rbpotter@chromium.org> Reviewed-by: Rebekah Potter <rbpotter@chromium.org> Cr-Commit-Position: refs/heads/master@{#890630}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
78618073c9
commit
2bb51cac35
@ -91,7 +91,8 @@ PageRanges GetPageRangesFromJobSettings(const base::Value& job_settings) {
|
||||
|
||||
// Page numbers are 1-based in the dictionary.
|
||||
// Page numbers are 0-based for the printing context.
|
||||
page_ranges.push_back(PageRange{from.value() - 1, to.value() - 1});
|
||||
page_ranges.push_back(PageRange{static_cast<uint32_t>(from.value() - 1),
|
||||
static_cast<uint32_t>(to.value() - 1)});
|
||||
}
|
||||
}
|
||||
return page_ranges;
|
||||
|
Reference in New Issue
Block a user