diff options
Diffstat (limited to 'ldebug.c')
-rw-r--r-- | ldebug.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldebug.c,v 2.27 2005/10/06 20:43:44 roberto Exp roberto $ | 2 | ** $Id: ldebug.c,v 2.28 2005/11/01 16:08:52 roberto Exp roberto $ |
3 | ** Debug Interface | 3 | ** Debug Interface |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -61,7 +61,7 @@ LUA_API int lua_sethook (lua_State *L, lua_Hook func, int mask, int count) { | |||
61 | L->hook = func; | 61 | L->hook = func; |
62 | L->basehookcount = count; | 62 | L->basehookcount = count; |
63 | resethookcount(L); | 63 | resethookcount(L); |
64 | L->hookmask = cast(lu_byte, mask); | 64 | L->hookmask = cast_byte(mask); |
65 | return 1; | 65 | return 1; |
66 | } | 66 | } |
67 | 67 | ||
@@ -92,7 +92,7 @@ LUA_API int lua_getstack (lua_State *L, int level, lua_Debug *ar) { | |||
92 | } | 92 | } |
93 | if (level == 0 && ci > L->base_ci) { /* level found? */ | 93 | if (level == 0 && ci > L->base_ci) { /* level found? */ |
94 | status = 1; | 94 | status = 1; |
95 | ar->i_ci = cast(int, ci - L->base_ci); | 95 | ar->i_ci = cast_int(ci - L->base_ci); |
96 | } | 96 | } |
97 | else if (level < 0) { /* level is of a lost tail call? */ | 97 | else if (level < 0) { /* level is of a lost tail call? */ |
98 | status = 1; | 98 | status = 1; |
@@ -550,7 +550,7 @@ void luaG_typeerror (lua_State *L, const TValue *o, const char *op) { | |||
550 | const char *name = NULL; | 550 | const char *name = NULL; |
551 | const char *t = luaT_typenames[ttype(o)]; | 551 | const char *t = luaT_typenames[ttype(o)]; |
552 | const char *kind = (isinstack(L->ci, o)) ? | 552 | const char *kind = (isinstack(L->ci, o)) ? |
553 | getobjname(L, L->ci, cast(int, o - L->base), &name) : | 553 | getobjname(L, L->ci, cast_int(o - L->base), &name) : |
554 | NULL; | 554 | NULL; |
555 | if (kind) | 555 | if (kind) |
556 | luaG_runerror(L, "attempt to %s %s " LUA_QS " (a %s value)", | 556 | luaG_runerror(L, "attempt to %s %s " LUA_QS " (a %s value)", |