summaryrefslogtreecommitdiff
path: root/src/ldebug.c
diff options
context:
space:
mode:
authorLua Team <team@lua.org>2006-01-12 12:00:00 +0000
committerrepogen <>2006-01-12 12:00:00 +0000
commit4f266285f998d0d14c4e83cc29772f0de1a7fbba (patch)
treea122a829730d9f96e3a4e2bf65347490a8759800 /src/ldebug.c
parentb3196343ba1a5dfe10e68eb9c61dc0ad5bb961a8 (diff)
downloadlua-github-5.1-rc1.tar.gz
Lua 5.1-rc15.1-rc1
Diffstat (limited to 'src/ldebug.c')
-rw-r--r--src/ldebug.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ldebug.c b/src/ldebug.c
index 5fb11ce1..8919a017 100644
--- a/src/ldebug.c
+++ b/src/ldebug.c
@@ -1,5 +1,5 @@
/*
-** $Id: ldebug.c,v 2.28 2005/11/01 16:08:52 roberto Exp $
+** $Id: ldebug.c,v 2.29 2005/12/22 16:19:56 roberto Exp $
** 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)",