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_scanf.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'iup/srclua5/il_scanf.c') diff --git a/iup/srclua5/il_scanf.c b/iup/srclua5/il_scanf.c index 6f035a7..477ac9d 100755 --- a/iup/srclua5/il_scanf.c +++ b/iup/srclua5/il_scanf.c @@ -113,17 +113,17 @@ int iupluaScanf(lua_State *L) if (s[-3] == 'l') { long l = 0; sscanf(text[i], "%ld", &l); - lua_pushnumber(L, l); + lua_pushinteger(L, l); total++; } else if (s[-3] == 'h') { short l = 0; sscanf(text[i], "%hd", &l); - lua_pushnumber(L, l); + lua_pushinteger(L, l); total++; } else { int l = 0; sscanf(text[i], "%d", &l); - lua_pushnumber(L, l); + lua_pushinteger(L, l); total++; } break; @@ -134,17 +134,17 @@ int iupluaScanf(lua_State *L) if (s[-3] == 'l') { long l = 0; sscanf(text[i], "%li", &l); - lua_pushnumber(L, l); + lua_pushinteger(L, l); total++; } else if (s[-3] == 'h') { short l = 0; sscanf(text[i], "%hi", &l); - lua_pushnumber(L, l); + lua_pushinteger(L, l); total++; } else { int l = 0; sscanf(text[i], "%i", &l); - lua_pushnumber(L, l); + lua_pushinteger(L, l); total++; } break; -- cgit v1.2.3