diff options
Diffstat (limited to 'ltests.c')
-rw-r--r-- | ltests.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 2.32 2005/09/20 17:55:10 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.33 2005/10/06 20:47:32 roberto Exp roberto $ |
3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -798,7 +798,7 @@ static int getnum_aux (lua_State *L, const char **pc) { | |||
798 | int sig = 1; | 798 | int sig = 1; |
799 | skip(pc); | 799 | skip(pc); |
800 | if (**pc == '.') { | 800 | if (**pc == '.') { |
801 | res = cast(int, lua_tonumber(L, -1)); | 801 | res = cast_int(lua_tonumber(L, -1)); |
802 | lua_pop(L, 1); | 802 | lua_pop(L, 1); |
803 | (*pc)++; | 803 | (*pc)++; |
804 | return res; | 804 | return res; |
@@ -807,7 +807,7 @@ static int getnum_aux (lua_State *L, const char **pc) { | |||
807 | sig = -1; | 807 | sig = -1; |
808 | (*pc)++; | 808 | (*pc)++; |
809 | } | 809 | } |
810 | while (isdigit(cast(int, **pc))) res = res*10 + (*(*pc)++) - '0'; | 810 | while (isdigit(cast_int(**pc))) res = res*10 + (*(*pc)++) - '0'; |
811 | return sig*res; | 811 | return sig*res; |
812 | } | 812 | } |
813 | 813 | ||
@@ -994,7 +994,7 @@ static int testC (lua_State *L) { | |||
994 | #ifndef luaL_setn | 994 | #ifndef luaL_setn |
995 | else if EQ("setn") { | 995 | else if EQ("setn") { |
996 | int i = getindex; | 996 | int i = getindex; |
997 | int n = cast(int, lua_tonumber(L1, -1)); | 997 | int n = cast_int(lua_tonumber(L1, -1)); |
998 | luaL_setn(L1, i, n); | 998 | luaL_setn(L1, i, n); |
999 | lua_pop(L1, 1); | 999 | lua_pop(L1, 1); |
1000 | } | 1000 | } |