diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-12-22 14:19:56 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-12-22 14:19:56 -0200 |
| commit | c505f341d638f8f0adcef4df85bcc8def6c930a3 (patch) | |
| tree | bfa689a7545e47cfd154066cd8d962daa6bc611e /ltests.c | |
| parent | 428325baecb2f514ea3eb6c87405f93872fb8430 (diff) | |
| download | lua-c505f341d638f8f0adcef4df85bcc8def6c930a3.tar.gz lua-c505f341d638f8f0adcef4df85bcc8def6c930a3.tar.bz2 lua-c505f341d638f8f0adcef4df85bcc8def6c930a3.zip | |
small changes in casts
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 | } |
