Commit 6eecf488 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

dinput: Avoid signed-unsigned integer comparisons.

parent 47e9ffa7
...@@ -331,7 +331,7 @@ static void assign_action(HWND dialog) ...@@ -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;
......
...@@ -482,7 +482,8 @@ HRESULT WINAPI JoystickWGenericImpl_BuildActionMap(LPDIRECTINPUTDEVICE8W iface, ...@@ -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 };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment