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 a61a0617b4
commit ce5226a69f

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;