Add explicit type conversions where necessary: remoting/
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: If4328ab3589eb30f3ffbbc05765edda56536d2ef Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2948107 Auto-Submit: Peter Kasting <pkasting@chromium.org> Commit-Queue: Lambros Lambrou <lambroslambrou@chromium.org> Reviewed-by: Lambros Lambrou <lambroslambrou@chromium.org> Cr-Commit-Position: refs/heads/master@{#890890}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
60c128cce4
commit
49ab5dc98d
remoting
@ -118,7 +118,7 @@ void GlCanvas::SetTransformationMatrix(const std::array<float, 9>& matrix) {
|
||||
|
||||
void GlCanvas::SetViewSize(int width, int height) {
|
||||
DCHECK(width > 0 && height > 0);
|
||||
float view_size[2]{width, height};
|
||||
float view_size[2]{static_cast<float>(width), static_cast<float>(height)};
|
||||
glUniform2fv(view_size_location_, 1, view_size);
|
||||
view_size_set_ = true;
|
||||
}
|
||||
|
@ -28,7 +28,7 @@ const net::BackoffEntry::Policy& FtlServicesContext::GetBackoffPolicy() {
|
||||
0,
|
||||
|
||||
// Initial delay for exponential back-off in ms.
|
||||
kBackoffInitialDelay.InMilliseconds(),
|
||||
static_cast<int>(kBackoffInitialDelay.InMilliseconds()),
|
||||
|
||||
// Factor by which the waiting time will be multiplied.
|
||||
2,
|
||||
|
Reference in New Issue
Block a user