Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarley Acheson <harley.acheson@gmail.com>2021-02-16 04:43:54 +0300
committerHarley Acheson <harley.acheson@gmail.com>2021-02-16 04:44:49 +0300
commit4a784f32fe1ef2792e05c9a4fc277f6f84baaaec (patch)
tree30799f113ff826e83ac00f90201517005e82d1ff
parent23de16414ad6eeebab7d8840a6626c1fd7a6e08d (diff)
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
-rw-r--r--intern/ghost/intern/GHOST_WindowWin32.cpp2
1 files changed, 1 insertions, 1 deletions
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);