Commit: 4a784f32fe1ef2792e05c9a4fc277f6f84baaaec
Author: Harley Acheson
Date:   Mon Feb 15 17:43:54 2021 -0800
Branches: master
https://developer.blender.org/rB4a784f32fe1ef2792e05c9a4fc277f6f84baaaec

Calm Win32 Window Creation Warning

Removing warning that 'GHOST_TUns32' to 'LONG' requires a narrowing conversion.

Differential Revision: https://developer.blender.org/D9971

Own Code

===================================================================

M       intern/ghost/intern/GHOST_WindowWin32.cpp

===================================================================

diff --git a/intern/ghost/intern/GHOST_WindowWin32.cpp 
b/intern/ghost/intern/GHOST_WindowWin32.cpp
index 377eb61874d..2de86ff21fb 100644
--- a/intern/ghost/intern/GHOST_WindowWin32.cpp
+++ b/intern/ghost/intern/GHOST_WindowWin32.cpp
@@ -92,7 +92,7 @@ GHOST_WindowWin32::GHOST_WindowWin32(GHOST_SystemWin32 
*system,
       m_debug_context(is_debug)
 {
   wchar_t *title_16 = alloc_utf16_from_8((char *)title, 0);
-  RECT win_rect = {left, top, left + width, top + height};
+  RECT win_rect = {left, top, (long)(left + width), (long)(top + height)};
   RECT parent_rect = {0, 0, 0, 0};
   if (parentwindow) {
     GetWindowRect(m_parentWindowHwnd, &parent_rect);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to