String buffer refactoring, part 4.
Add lua_State pointer to SBuf for buffer resizing.
This commit is contained in:
@@ -61,7 +61,7 @@ static LJ_AINLINE LexChar lex_next(LexState *ls)
|
||||
/* Save character. */
|
||||
static LJ_AINLINE void lex_save(LexState *ls, LexChar c)
|
||||
{
|
||||
lj_buf_putb(ls->L, &ls->sb, c);
|
||||
lj_buf_putb(&ls->sb, c);
|
||||
}
|
||||
|
||||
/* Save previous character and get next character. */
|
||||
|
||||
Reference in New Issue
Block a user