mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 13:07:52 +00:00
Bug 690937 - Fixed compilation on mingw
--HG-- extra : rebase_source : 3ff75ba5d6c9fe68a3f195c86176f498db0db5a4
This commit is contained in:
parent
feaa797775
commit
70d3d7939f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user