History

Lua 5.1-rc1

Lua Team committed 20 years ago

Commit 53d3c321 parent 27f2ec746 files · +1822 −1531Browse files

Showing the changes to src/lstring.c (1 of 46 files). Show all

Unified · Split

src/lstring.c+2−2
@@ -1,5 +1,5 @@
11 /*
2−** $Id: lstring.c,v 2.7 2005/02/18 12:40:02 roberto Exp $
2+** $Id: lstring.c,v 2.8 2005/12/22 16:19:56 roberto Exp $
33 ** String table (keeps all strings handled by Lua)
44 ** See Copyright Notice in lua.h
55 */
@@ -35,7 +35,7 @@ void luaS_resize (lua_State *L, int newsize) { · 29 unmodified lines
3535 GCObject *next = p->gch.next; /* save next */
3636 unsigned int h = gco2ts(p)->hash;
3737 int h1 = lmod(h, newsize); /* new position */
38− lua_assert(cast(int, h%newsize) == lmod(h, newsize));
38+ lua_assert(cast_int(h%newsize) == lmod(h, newsize));
3939 p->gch.next = newhash[h1]; /* chain it */
4040 newhash[h1] = p;
4141 p = next;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t