aboutsummaryrefslogtreecommitdiff
path: root/src/lj_lex.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lj_lex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lj_lex.c b/src/lj_lex.c
index 61b04c4b..bd81dc40 100644
--- a/src/lj_lex.c
+++ b/src/lj_lex.c
@@ -411,6 +411,7 @@ int lj_lex_setup(lua_State *L, LexState *ls)
411 ls->linenumber = 1; 411 ls->linenumber = 1;
412 ls->lastline = 1; 412 ls->lastline = 1;
413 ls->endmark = 0; 413 ls->endmark = 0;
414 ls->fr2 = LJ_FR2; /* Generate native bytecode by default. */
414 lex_next(ls); /* Read-ahead first char. */ 415 lex_next(ls); /* Read-ahead first char. */
415 if (ls->c == 0xef && ls->p + 2 <= ls->pe && (uint8_t)ls->p[0] == 0xbb && 416 if (ls->c == 0xef && ls->p + 2 <= ls->pe && (uint8_t)ls->p[0] == 0xbb &&
416 (uint8_t)ls->p[1] == 0xbf) { /* Skip UTF-8 BOM (if buffered). */ 417 (uint8_t)ls->p[1] == 0xbf) { /* Skip UTF-8 BOM (if buffered). */