Skip to content

Commit

Permalink
Fix bug in lj_bcread_proto()
Browse files Browse the repository at this point in the history
  • Loading branch information
lukego committed Nov 21, 2017
1 parent 5e673ea commit 7f4787a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lj_bcread.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ GCproto *lj_bcread_proto(LexState *ls)
pt->firstline = firstline;
pt->numline = numline;
if (sizedbg) {
MSize sizeli = (sizebc-1) / sizeof(BCLine);
MSize sizeli = (sizebc-1) * sizeof(BCLine);
setmref(pt->lineinfo, (char *)pt + ofsdbg);
setmref(pt->uvinfo, (char *)pt + ofsdbg + sizeli);
bcread_dbg(ls, pt, sizedbg);
Expand Down

0 comments on commit 7f4787a

Please sign in to comment.