diff options
Diffstat (limited to 'src/lj_bcread.c')
-rw-r--r-- | src/lj_bcread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_bcread.c b/src/lj_bcread.c index 2360bf40..519164ca 100644 --- a/src/lj_bcread.c +++ b/src/lj_bcread.c | |||
@@ -48,7 +48,7 @@ static LJ_NOINLINE void bcread_error(LexState *ls, ErrMsg em) | |||
48 | static LJ_NOINLINE void bcread_fill(LexState *ls, MSize len, int need) | 48 | static LJ_NOINLINE void bcread_fill(LexState *ls, MSize len, int need) |
49 | { | 49 | { |
50 | lua_assert(len != 0); | 50 | lua_assert(len != 0); |
51 | if (len > LJ_MAX_MEM || ls->c < 0) | 51 | if (len > LJ_MAX_BUF || ls->c < 0) |
52 | bcread_error(ls, LJ_ERR_BCBAD); | 52 | bcread_error(ls, LJ_ERR_BCBAD); |
53 | do { | 53 | do { |
54 | const char *buf; | 54 | const char *buf; |