summaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-12-22 14:19:56 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-12-22 14:19:56 -0200
commitc505f341d638f8f0adcef4df85bcc8def6c930a3 (patch)
treebfa689a7545e47cfd154066cd8d962daa6bc611e /ldebug.c
parent428325baecb2f514ea3eb6c87405f93872fb8430 (diff)
downloadlua-github-c505f341d638f8f0adcef4df85bcc8def6c930a3.tar.gz
small changes in casts
Diffstat (limited to 'ldebug.c')
-rw-r--r--ldebug.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ldebug.c b/ldebug.c
index 2ba11f3c..4fa42ac9 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
/*
-** $Id: ldebug.c,v 2.27 2005/10/06 20:43:44 roberto Exp roberto $
+** $Id: ldebug.c,v 2.28 2005/11/01 16:08:52 roberto Exp roberto $
** Debug Interface
** See Copyright Notice in lua.h
*/
@@ -61,7 +61,7 @@ LUA_API int lua_sethook (lua_State *L, lua_Hook func, int mask, int count) {
L->hook = func;
L->basehookcount = count;
resethookcount(L);
- L->hookmask = cast(lu_byte, mask);
+ L->hookmask = cast_byte(mask);
return 1;
}
@@ -92,7 +92,7 @@ LUA_API int lua_getstack (lua_State *L, int level, lua_Debug *ar) {
}
if (level == 0 && ci > L->base_ci) { /* level found? */
status = 1;
- ar->i_ci = cast(int, ci - L->base_ci);
+ ar->i_ci = cast_int(ci - L->base_ci);
}
else if (level < 0) { /* level is of a lost tail call? */
status = 1;
@@ -550,7 +550,7 @@ void luaG_typeerror (lua_State *L, const TValue *o, const char *op) {
const char *name = NULL;
const char *t = luaT_typenames[ttype(o)];
const char *kind = (isinstack(L->ci, o)) ?
- getobjname(L, L->ci, cast(int, o - L->base), &name) :
+ getobjname(L, L->ci, cast_int(o - L->base), &name) :
NULL;
if (kind)
luaG_runerror(L, "attempt to %s %s " LUA_QS " (a %s value)",