summaryrefslogtreecommitdiff
path: root/ltm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-05-20 16:51:06 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-05-20 16:51:06 -0300
commit8876a1bf92bd4b3e2e04eca2aed198a0135d9282 (patch)
treec7e86b5df43e835c7eaef5f0023de5bbd86cc25a /ltm.c
parentf53fd8d5f5f6c06afb191c5f579c75fcf607d52d (diff)
downloadlua-8876a1bf92bd4b3e2e04eca2aed198a0135d9282.tar.gz
lua-8876a1bf92bd4b3e2e04eca2aed198a0135d9282.tar.bz2
lua-8876a1bf92bd4b3e2e04eca2aed198a0135d9282.zip
details
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 7f6ebc63..aaba8943 100644
--- a/ltm.c
+++ b/ltm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltm.c,v 1.89 2002/04/05 18:54:31 roberto Exp roberto $ 2** $Id: ltm.c,v 1.90 2002/04/30 13:01:48 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*/
@@ -47,7 +47,7 @@ void luaT_init (lua_State *L) {
47const TObject *luaT_gettm (Table *events, TMS event, TString *ename) { 47const TObject *luaT_gettm (Table *events, TMS event, TString *ename) {
48 const TObject *tm = luaH_getstr(events, ename); 48 const TObject *tm = luaH_getstr(events, ename);
49 if (ttype(tm) == LUA_TNIL) { /* no tag method? */ 49 if (ttype(tm) == LUA_TNIL) { /* no tag method? */
50 events->flags |= (1<<event); /* cache this fact */ 50 events->flags |= (1u<<event); /* cache this fact */
51 return NULL; 51 return NULL;
52 } 52 }
53 else return tm; 53 else return tm;