aboutsummaryrefslogtreecommitdiff
path: root/ltm.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 /ltm.c
parent428325baecb2f514ea3eb6c87405f93872fb8430 (diff)
downloadlua-c505f341d638f8f0adcef4df85bcc8def6c930a3.tar.gz
lua-c505f341d638f8f0adcef4df85bcc8def6c930a3.tar.bz2
lua-c505f341d638f8f0adcef4df85bcc8def6c930a3.zip
small changes in casts
Diffstat (limited to 'ltm.c')
-rw-r--r--ltm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ltm.c b/ltm.c
index e9dc0d87..04773840 100644
--- a/ltm.c
+++ b/ltm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltm.c,v 2.5 2005/05/05 15:34:03 roberto Exp roberto $ 2** $Id: ltm.c,v 2.6 2005/05/20 15:53:42 roberto Exp roberto $
3** Tag methods 3** Tag methods
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -51,7 +51,7 @@ const TValue *luaT_gettm (Table *events, TMS event, TString *ename) {
51 const TValue *tm = luaH_getstr(events, ename); 51 const TValue *tm = luaH_getstr(events, ename);
52 lua_assert(event <= TM_EQ); 52 lua_assert(event <= TM_EQ);
53 if (ttisnil(tm)) { /* no tag method? */ 53 if (ttisnil(tm)) { /* no tag method? */
54 events->flags |= cast(lu_byte, 1u<<event); /* cache this fact */ 54 events->flags |= cast_byte(1u<<event); /* cache this fact */
55 return NULL; 55 return NULL;
56 } 56 }
57 else return tm; 57 else return tm;