forked from qt-creator/qt-creator
fix warning C4267
We assing a DWORD to wParam when posting WM_DESTROY, thus we can be sure that there's no loss of data. Change-Id: I21c9b658ff06ea7792d0a357ff508bdab04fa5f7 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
@@ -108,7 +108,7 @@ int main(int argc, char **)
|
||||
while (GetMessage(&msg, NULL, 0, 0))
|
||||
{
|
||||
if (msg.message == WM_DESTROY)
|
||||
dwExitCode = msg.wParam;
|
||||
dwExitCode = static_cast<DWORD>(msg.wParam);
|
||||
TranslateMessage(&msg);
|
||||
DispatchMessage(&msg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user