lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 8876a1bf92bd4b3e2e04eca2aed198a0135d9282
parent f53fd8d5f5f6c06afb191c5f579c75fcf607d52d
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Mon, 20 May 2002 16:50:44 -0300

details

Diffstat:
Mltm.c | 4++--
Mltm.h | 4++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/ltm.c b/ltm.c @@ -1,5 +1,5 @@ /* -** $Id: ltm.c,v 1.89 2002/04/05 18:54:31 roberto Exp roberto $ +** $Id: ltm.c,v 1.90 2002/04/30 13:01:48 roberto Exp roberto $ ** Tag methods ** See Copyright Notice in lua.h */ @@ -47,7 +47,7 @@ void luaT_init (lua_State *L) { const TObject *luaT_gettm (Table *events, TMS event, TString *ename) { const TObject *tm = luaH_getstr(events, ename); if (ttype(tm) == LUA_TNIL) { /* no tag method? */ - events->flags |= (1<<event); /* cache this fact */ + events->flags |= (1u<<event); /* cache this fact */ return NULL; } else return tm; diff --git a/ltm.h b/ltm.h @@ -1,5 +1,5 @@ /* -** $Id: ltm.h,v 1.1 2001/11/29 22:14:34 rieru Exp rieru $ +** $Id: ltm.h,v 1.31 2002/01/09 21:50:35 roberto Exp roberto $ ** Tag methods ** See Copyright Notice in lua.h */ @@ -35,7 +35,7 @@ typedef enum { #define fasttm(l,et,e) \ - (((et)->flags & (1<<(e))) ? NULL : luaT_gettm(et, e, G(l)->tmname[e])) + (((et)->flags & (1u<<(e))) ? NULL : luaT_gettm(et, e, G(l)->tmname[e])) const TObject *luaT_gettm (Table *events, TMS event, TString *ename);