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) {