dinput: Avoid signed-unsigned integer comparisons.
This commit is contained in:
parent
47e9ffa773
commit
6eecf4886f
|
@ -331,7 +331,7 @@ static void assign_action(HWND dialog)
|
|||
|
||||
static void copy_actions(LPDIACTIONFORMATW to, LPDIACTIONFORMATW from)
|
||||
{
|
||||
int i;
|
||||
DWORD i;
|
||||
for (i=0; i < from->dwNumActions; i++)
|
||||
{
|
||||
to->rgoAction[i].guidInstance = from->rgoAction[i].guidInstance;
|
||||
|
|
|
@ -482,7 +482,8 @@ HRESULT WINAPI JoystickWGenericImpl_BuildActionMap(LPDIRECTINPUTDEVICE8W iface,
|
|||
DWORD dwFlags)
|
||||
{
|
||||
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 type_map[] = { DIDFT_RELAXIS, DIDFT_PSHBUTTON };
|
||||
|
||||
|
|
Loading…
Reference in New Issue