diff --git a/src/lj_bcread.c b/src/lj_bcread.c index 9618ddae43..52a22da9ed 100644 --- a/src/lj_bcread.c +++ b/src/lj_bcread.c @@ -164,9 +164,7 @@ static void bcread_dbg(LexState *ls, GCproto *pt, MSize sizedbg) static const void *bcread_varinfo(GCproto *pt) { const uint8_t *p = proto_uvinfo(pt); - MSize n = pt->sizeuv; - if (n) while (*p++ || --n) ; - return p; + return p + pt->sizeuv; } /* Read a single constant key/value of a template table. */