dinput: Avoid signed-unsigned integer comparisons.

This commit is contained in:
Andrew Talbot 2013-01-14 21:44:49 +00:00 committed by Alexandre Julliard
parent 47e9ffa773
commit 6eecf4886f
2 changed files with 3 additions and 2 deletions

View File

@ -331,7 +331,7 @@ static void assign_action(HWND dialog)
static void copy_actions(LPDIACTIONFORMATW to, LPDIACTIONFORMATW from) static void copy_actions(LPDIACTIONFORMATW to, LPDIACTIONFORMATW from)
{ {
int i; DWORD i;
for (i=0; i < from->dwNumActions; i++) for (i=0; i < from->dwNumActions; i++)
{ {
to->rgoAction[i].guidInstance = from->rgoAction[i].guidInstance; to->rgoAction[i].guidInstance = from->rgoAction[i].guidInstance;

View File

@ -482,7 +482,8 @@ HRESULT WINAPI JoystickWGenericImpl_BuildActionMap(LPDIRECTINPUTDEVICE8W iface,
DWORD dwFlags) DWORD dwFlags)
{ {
JoystickGenericImpl *This = impl_from_IDirectInputDevice8W(iface); JoystickGenericImpl *This = impl_from_IDirectInputDevice8W(iface);
int i, j, has_actions = 0; unsigned int i, j;
int has_actions = 0;
DWORD object_types[] = { DIDFT_AXIS, DIDFT_BUTTON }; DWORD object_types[] = { DIDFT_AXIS, DIDFT_BUTTON };
DWORD type_map[] = { DIDFT_RELAXIS, DIDFT_PSHBUTTON }; DWORD type_map[] = { DIDFT_RELAXIS, DIDFT_PSHBUTTON };