Merge pull request #960 from lioncash/sign

apple_input: Fix a signed-unsigned mismatch warning
This commit is contained in:
Twinaphex 2014-09-09 22:08:28 +02:00
commit 511f0ab075

View File

@ -14,7 +14,7 @@
* If not, see <http://www.gnu.org/licenses/>. * If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <stdint.h>
#include <unistd.h> #include <unistd.h>
#include "input_common.h" #include "input_common.h"
@ -498,14 +498,14 @@ static void *apple_input_init(void)
static void apple_input_poll(void *data) static void apple_input_poll(void *data)
{ {
int i; uint32_t i;
(void)data; (void)data;
#ifdef IOS #ifdef IOS
apple_gamecontroller_poll_all(); apple_gamecontroller_poll_all();
#endif #endif
for (i = 0; i < g_current_input_data.touch_count; i ++) for (i = 0; i < g_current_input_data.touch_count; i++)
{ {
input_translate_coord_viewport(g_current_input_data.touches[i].screen_x, g_current_input_data.touches[i].screen_y, input_translate_coord_viewport(g_current_input_data.touches[i].screen_x, g_current_input_data.touches[i].screen_y,
&g_current_input_data.touches[i].fixed_x, &g_current_input_data.touches[i].fixed_y, &g_current_input_data.touches[i].fixed_x, &g_current_input_data.touches[i].fixed_y,