From e6e123d503c1744a7cd527317bfe35675348d07e Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Fri, 21 Aug 2015 13:54:29 -0400 Subject: [PATCH] Windows: Fix warning C4267: 'argument' : conversion from 'size_t' to 'int' (issue #1695) --- tests/cefclient/browser/root_window_win.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/cefclient/browser/root_window_win.cc b/tests/cefclient/browser/root_window_win.cc index cede9b626..958c8c09d 100644 --- a/tests/cefclient/browser/root_window_win.cc +++ b/tests/cefclient/browser/root_window_win.cc @@ -209,8 +209,11 @@ void RootWindowWin::Hide() { void RootWindowWin::SetBounds(int x, int y, size_t width, size_t height) { REQUIRE_MAIN_THREAD(); - if (hwnd_) - SetWindowPos(hwnd_, NULL, x, y, width, height, SWP_NOZORDER); + if (hwnd_) { + SetWindowPos(hwnd_, NULL, + x, y, static_cast(width), static_cast(height), + SWP_NOZORDER); + } } void RootWindowWin::Close(bool force) {