diff options
Diffstat (limited to 'ltm.c')
-rw-r--r-- | ltm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltm.c,v 1.104 2002/11/14 11:51:50 roberto Exp roberto $ | 2 | ** $Id: ltm.c,v 1.105 2002/12/04 17:38:31 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 | */ |
@@ -49,7 +49,7 @@ const TObject *luaT_gettm (Table *events, TMS event, TString *ename) { | |||
49 | const TObject *tm = luaH_getstr(events, ename); | 49 | const TObject *tm = luaH_getstr(events, ename); |
50 | lua_assert(event <= TM_EQ); | 50 | lua_assert(event <= TM_EQ); |
51 | if (ttisnil(tm)) { /* no tag method? */ | 51 | if (ttisnil(tm)) { /* no tag method? */ |
52 | events->flags |= (1u<<event); /* cache this fact */ | 52 | events->flags |= cast(lu_byte, 1u<<event); /* cache this fact */ |
53 | return NULL; | 53 | return NULL; |
54 | } | 54 | } |
55 | else return tm; | 55 | else return tm; |