From 7505e88db66798b2b8fcdff2d92a7136cd826b5b Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Thu, 9 Sep 2010 02:26:30 +0200 Subject: Upgrading to IUP 3.2 - and cleaning up. --- iup/srclua5/il_colorbrowser.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'iup/srclua5/il_colorbrowser.c') diff --git a/iup/srclua5/il_colorbrowser.c b/iup/srclua5/il_colorbrowser.c index 601fac9..1a9243d 100755 --- a/iup/srclua5/il_colorbrowser.c +++ b/iup/srclua5/il_colorbrowser.c @@ -16,18 +16,18 @@ static int colorbrowser_drag_cb(Ihandle *self, unsigned char p0, unsigned char p1, unsigned char p2) { lua_State *L = iuplua_call_start(self, "drag_cb"); - lua_pushnumber(L, p0); - lua_pushnumber(L, p1); - lua_pushnumber(L, p2); + lua_pushinteger(L, p0); + lua_pushinteger(L, p1); + lua_pushinteger(L, p2); return iuplua_call(L, 3); } static int colorbrowser_change_cb(Ihandle *self, unsigned char p0, unsigned char p1, unsigned char p2) { lua_State *L = iuplua_call_start(self, "change_cb"); - lua_pushnumber(L, p0); - lua_pushnumber(L, p1); - lua_pushnumber(L, p2); + lua_pushinteger(L, p0); + lua_pushinteger(L, p1); + lua_pushinteger(L, p2); return iuplua_call(L, 3); } -- cgit v1.2.3