aboutsummaryrefslogtreecommitdiff
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
parentf53fd8d5f5f6c06afb191c5f579c75fcf607d52d (diff)
downloadlua-8876a1bf92bd4b3e2e04eca2aed198a0135d9282.tar.gz
lua-8876a1bf92bd4b3e2e04eca2aed198a0135d9282.tar.bz2
lua-8876a1bf92bd4b3e2e04eca2aed198a0135d9282.zip
details
-rw-r--r--ltm.c4
-rw-r--r--ltm.h4
2 files changed, 4 insertions, 4 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;
diff --git a/ltm.h b/ltm.h
index eedcc32d..ab6c375a 100644
--- a/ltm.h
+++ b/ltm.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltm.h,v 1.1 2001/11/29 22:14:34 rieru Exp rieru $ 2** $Id: ltm.h,v 1.31 2002/01/09 21:50:35 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*/
@@ -35,7 +35,7 @@ typedef enum {
35 35
36 36
37#define fasttm(l,et,e) \ 37#define fasttm(l,et,e) \
38 (((et)->flags & (1<<(e))) ? NULL : luaT_gettm(et, e, G(l)->tmname[e])) 38 (((et)->flags & (1u<<(e))) ? NULL : luaT_gettm(et, e, G(l)->tmname[e]))
39 39
40 40
41const TObject *luaT_gettm (Table *events, TMS event, TString *ename); 41const TObject *luaT_gettm (Table *events, TMS event, TString *ename);