diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-05-20 16:51:06 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-05-20 16:51:06 -0300 |
commit | 8876a1bf92bd4b3e2e04eca2aed198a0135d9282 (patch) | |
tree | c7e86b5df43e835c7eaef5f0023de5bbd86cc25a | |
parent | f53fd8d5f5f6c06afb191c5f579c75fcf607d52d (diff) | |
download | lua-8876a1bf92bd4b3e2e04eca2aed198a0135d9282.tar.gz lua-8876a1bf92bd4b3e2e04eca2aed198a0135d9282.tar.bz2 lua-8876a1bf92bd4b3e2e04eca2aed198a0135d9282.zip |
details
-rw-r--r-- | ltm.c | 4 | ||||
-rw-r--r-- | ltm.h | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -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) { | |||
47 | const TObject *luaT_gettm (Table *events, TMS event, TString *ename) { | 47 | const 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; |
@@ -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 | ||
41 | const TObject *luaT_gettm (Table *events, TMS event, TString *ename); | 41 | const TObject *luaT_gettm (Table *events, TMS event, TString *ename); |