diff options
Diffstat (limited to 'lstring.c')
-rw-r--r-- | lstring.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstring.c,v 1.48 2000/12/28 12:55:41 roberto Exp roberto $ | 2 | ** $Id: lstring.c,v 1.49 2001/01/10 17:41:50 roberto Exp roberto $ |
3 | ** String table (keeps all strings handled by Lua) | 3 | ** String table (keeps all strings handled by Lua) |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -43,7 +43,7 @@ void luaS_resize (lua_State *L, stringtable *tb, int newsize) { | |||
43 | TString *next = p->nexthash; /* save next */ | 43 | TString *next = p->nexthash; /* save next */ |
44 | luint32 h = (tb == &L->strt) ? p->u.s.hash : IntPoint(p->u.d.value); | 44 | luint32 h = (tb == &L->strt) ? p->u.s.hash : IntPoint(p->u.d.value); |
45 | int h1 = lmod(h, newsize); /* new position */ | 45 | int h1 = lmod(h, newsize); /* new position */ |
46 | LUA_ASSERT(h%newsize == lmod(h, newsize), | 46 | LUA_ASSERT((int)(h%newsize) == lmod(h, newsize), |
47 | "a&(x-1) == a%x, for x power of 2"); | 47 | "a&(x-1) == a%x, for x power of 2"); |
48 | p->nexthash = newhash[h1]; /* chain it in new position */ | 48 | p->nexthash = newhash[h1]; /* chain it in new position */ |
49 | newhash[h1] = p; | 49 | newhash[h1] = p; |