mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
creation of strings must call garbage collector.
This commit is contained in:
parent
7236df875a
commit
3e9daa7416
1 changed files with 2 additions and 1 deletions
3
tree.c
3
tree.c
|
|
@ -3,7 +3,7 @@
|
|||
** TecCGraf - PUC-Rio
|
||||
*/
|
||||
|
||||
char *rcs_tree="$Id: tree.c,v 1.18 1996/02/14 19:11:09 roberto Exp roberto $";
|
||||
char *rcs_tree="$Id: tree.c,v 1.19 1996/02/22 20:34:33 roberto Exp $";
|
||||
|
||||
|
||||
#include <string.h>
|
||||
|
|
@ -93,6 +93,7 @@ static TaggedString *insert (char *str, stringtable *tb)
|
|||
i = (i+1)%tb->size;
|
||||
}
|
||||
/* not found */
|
||||
lua_pack();
|
||||
if (j != -1) /* is there an EMPTY space? */
|
||||
i = j;
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue