lilypad: fix compilation on ICC

This commit is contained in:
Gregory Hainaut 2016-07-28 10:46:40 +02:00
parent 55bc7a678a
commit d714a2a393
2 changed files with 3 additions and 1 deletions

View File

@ -22,7 +22,9 @@
#include "stdint.h"
typedef uint32_t DWORD;
typedef uint16_t USHORT;
#ifndef __INTEL_COMPILER
typedef int64_t __int64;
#endif
#define MAX_PATH (256) // random value

View File

@ -367,7 +367,7 @@ int LoadSettings(int force, wchar_t *file) {
w++;
}
string[w] = 0;
int len = sscanf(string, " %i , %i , %i , %i , %i , %i , %i", &uid, &port, &command, &sensitivity, &turbo, &slot, &deadZone);
int len = sscanf(string, " %u , %i , %i , %i , %i , %i , %i", &uid, &port, &command, &sensitivity, &turbo, &slot, &deadZone);
if (len >= 5 && type) {
VirtualControl *c = dev->GetVirtualControl(uid);
if (!c) c = dev->AddVirtualControl(uid, -1);