0

Add explicit type conversions where necessary: extensions/

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: Ib46db15fddbe36b8b4a7e84e2c3684544b6ec4c8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2947538
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Karan Bhatia <karandeepb@chromium.org>
Reviewed-by: Karan Bhatia <karandeepb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#890595}
This commit is contained in:
Peter Kasting
2021-06-09 03:46:47 +00:00
committed by Chromium LUCI CQ
parent b7519d2733
commit fa6c0967bf

@ -22,7 +22,8 @@ void BlobReader::Read(content::BrowserContext* browser_context,
CHECK_GT(length, 0);
CHECK_LE(offset, std::numeric_limits<int64_t>::max() - length);
absl::optional<Range> range = Range{offset, length};
absl::optional<Range> range =
Range{static_cast<uint64_t>(offset), static_cast<uint64_t>(length)};
Read(browser_context, blob_uuid, std::move(callback), std::move(range));
}