summaryrefslogtreecommitdiff
path: root/src/lj_bcread.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_bcread.c')
-rw-r--r--src/lj_bcread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_bcread.c b/src/lj_bcread.c
index c5d4cd9d..30479230 100644
--- a/src/lj_bcread.c
+++ b/src/lj_bcread.c
@@ -457,7 +457,7 @@ GCproto *lj_bcread(LexState *ls)
457 setprotoV(L, L->top, pt); 457 setprotoV(L, L->top, pt);
458 incr_top(L); 458 incr_top(L);
459 } 459 }
460 if (ls->n != 0 || L->top-1 != bcread_oldtop(L, ls)) 460 if ((int32_t)ls->n > 0 || L->top-1 != bcread_oldtop(L, ls))
461 bcread_error(ls, LJ_ERR_BCBAD); 461 bcread_error(ls, LJ_ERR_BCBAD);
462 /* Pop off last prototype. */ 462 /* Pop off last prototype. */
463 L->top--; 463 L->top--;