From 2cb551c95b03612f9dd680504d30bc1d18ea31ac Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 28 Feb 2019 15:23:46 +0300 Subject: code cleaning / warning fixes --- src/mir_core/src/CCtrlBase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mir_core/src/CCtrlBase.cpp b/src/mir_core/src/CCtrlBase.cpp index 609804e390..4761bd07d5 100644 --- a/src/mir_core/src/CCtrlBase.cpp +++ b/src/mir_core/src/CCtrlBase.cpp @@ -151,14 +151,14 @@ char* CCtrlBase::GetTextU() wchar_t* CCtrlBase::GetText(wchar_t *buf, size_t size) { - GetWindowTextW(m_hwnd, buf, size); + GetWindowTextW(m_hwnd, buf, (int)size); buf[size - 1] = 0; return buf; } char* CCtrlBase::GetTextA(char *buf, size_t size) { - GetWindowTextA(m_hwnd, buf, size); + GetWindowTextA(m_hwnd, buf, (int)size); buf[size - 1] = 0; return buf; } -- cgit v1.2.3