summaryrefslogtreecommitdiff
path: root/vcl/win
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-11-27 11:15:07 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-11-27 14:27:21 +0100
commitf4a021a196e8f71b92d9e6b4021a99526cb5cc72 (patch)
tree475c427cc22611302573c6e1aa14b91010ef2c37 /vcl/win
parent092ec538045f443dce3e45ff73064eb46d0a4fc0 (diff)
WinSalFrame::mnWidth/Height should presumably be of type LONG
...as they are only ever set to LO-/HIWORD values cast to a signed integer type Change-Id: I82f9a80bab7c3b7e3ee5545725efd0d88601b8c5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106755 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/win')
-rw-r--r--vcl/win/window/salframe.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/win/window/salframe.cxx b/vcl/win/window/salframe.cxx
index 34a569be39ab..3454ebf885c8 100644
--- a/vcl/win/window/salframe.cxx
+++ b/vcl/win/window/salframe.cxx
@@ -4025,8 +4025,8 @@ static void ImplHandleSizeMsg( HWND hWnd, WPARAM wParam, LPARAM lParam )
{
UpdateFrameGeometry( hWnd, pFrame );
- pFrame->mnWidth = static_cast<int>(LOWORD(lParam));
- pFrame->mnHeight = static_cast<int>(HIWORD(lParam));
+ pFrame->mnWidth = static_cast<LONG>(LOWORD(lParam));
+ pFrame->mnHeight = static_cast<LONG>(HIWORD(lParam));
// save state
ImplSaveFrameState( pFrame );
// Call Hdl