aboutsummaryrefslogtreecommitdiff
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-c505f341d638f8f0adcef4df85bcc8def6c930a3.tar.gz
lua-c505f341d638f8f0adcef4df85bcc8def6c930a3.tar.bz2
lua-c505f341d638f8f0adcef4df85bcc8def6c930a3.zip
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 @@
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)",