diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2010-09-09 02:26:30 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2010-09-09 02:32:26 +0200 |
commit | 7505e88db66798b2b8fcdff2d92a7136cd826b5b (patch) | |
tree | b6ced565318f8e8112e35cb0ad53abe4212ef8de /iup/srclua5/il_scanf.c | |
parent | e9a184546b18cf3b796bd560561f312934004c54 (diff) |
Upgrading to IUP 3.2 - and cleaning up.
Diffstat (limited to 'iup/srclua5/il_scanf.c')
-rwxr-xr-x | iup/srclua5/il_scanf.c | 12 |
1 files changed, 6 insertions, 6 deletions
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; |