From 9fca67b6cbff0db42161c0f519b1e7b1a2833ec8 Mon Sep 17 00:00:00 2001 From: Qingping Hou Date: Sun, 4 Nov 2012 11:24:29 +0800 Subject: [PATCH] add back type casting when sending event to lua stack --- input.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/input.c b/input.c index 40a487ce4..7d2169fff 100644 --- a/input.c +++ b/input.c @@ -306,13 +306,13 @@ static int waitForInput(lua_State *L) { if(n == sizeof(struct input_event)) { lua_newtable(L); lua_pushstring(L, "type"); - lua_pushinteger(L, input.type); + lua_pushinteger(L, (int) input.type); lua_settable(L, -3); lua_pushstring(L, "code"); - lua_pushinteger(L, input.code); + lua_pushinteger(L, (int) input.code); lua_settable(L, -3); lua_pushstring(L, "value"); - lua_pushinteger(L, input.value); + lua_pushinteger(L, (int) input.value); lua_settable(L, -3); return 1; } else {