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_colorbar.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'iup/srclua5/il_colorbar.c') diff --git a/iup/srclua5/il_colorbar.c b/iup/srclua5/il_colorbar.c index d67608d..714c3a7 100755 --- a/iup/srclua5/il_colorbar.c +++ b/iup/srclua5/il_colorbar.c @@ -16,30 +16,30 @@ static int colorbar_switch_cb(Ihandle *self, int p0, int p1) { lua_State *L = iuplua_call_start(self, "switch_cb"); - lua_pushnumber(L, p0); - lua_pushnumber(L, p1); + lua_pushinteger(L, p0); + lua_pushinteger(L, p1); return iuplua_call(L, 2); } static int colorbar_select_cb(Ihandle *self, int p0, int p1) { lua_State *L = iuplua_call_start(self, "select_cb"); - lua_pushnumber(L, p0); - lua_pushnumber(L, p1); + lua_pushinteger(L, p0); + lua_pushinteger(L, p1); return iuplua_call(L, 2); } static char * colorbar_cell_cb(Ihandle *self, int p0) { lua_State *L = iuplua_call_start(self, "cell_cb"); - lua_pushnumber(L, p0); + lua_pushinteger(L, p0); return iuplua_call_rs(L, 1); } static int colorbar_extended_cb(Ihandle *self, int p0) { lua_State *L = iuplua_call_start(self, "extended_cb"); - lua_pushnumber(L, p0); + lua_pushinteger(L, p0); return iuplua_call(L, 1); } -- cgit v1.2.3