Bug 690937 - Fixed compilation on mingw

--HG--
extra : rebase_source : 3ff75ba5d6c9fe68a3f195c86176f498db0db5a4
This commit is contained in:
Jacek Caban 2014-05-12 11:02:40 +02:00
parent 5c0b1985e0
commit 65ac64257a

View File

@ -12,7 +12,7 @@
#include <windows.h>
#include <hidsdi.h>
#include <stdio.h>
#include <Xinput.h>
#include <xinput.h>
#include "nsIComponentManager.h"
#include "nsIObserver.h"
@ -745,7 +745,7 @@ WindowsGamepadService::GetRawGamepad(HANDLE handle)
}
}
gamepad.numAxes = std::min(axes.Length(), kMaxAxes);
gamepad.numAxes = std::min<size_t>(axes.Length(), kMaxAxes);
for (unsigned i = 0; i < gamepad.numAxes; i++) {
if (i >= kMaxAxes) {
break;