mirror of https://github.com/libsdl-org/SDL.git
Use sized types when fixing undefined behavior
This commit is contained in:
parent
f1d16e9b4d
commit
24339524c5
|
|
@ -1640,7 +1640,7 @@ LRESULT CALLBACK WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara
|
|||
POINT cursorPos;
|
||||
GetCursorPos(&cursorPos);
|
||||
ScreenToClient(hwnd, &cursorPos);
|
||||
PostMessage(hwnd, WM_MOUSEMOVE, 0, cursorPos.x | (((unsigned int)((short)cursorPos.y)) << 16));
|
||||
PostMessage(hwnd, WM_MOUSEMOVE, 0, cursorPos.x | (((Uint32)((Sint16)cursorPos.y)) << 16));
|
||||
}
|
||||
} break;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue