Unverified Commit 401fa56b authored by Terry Ellison's avatar Terry Ellison Committed by GitHub
Browse files

Minor Luac fixes (#2579)

parent 8bb41fe9
......@@ -47,7 +47,7 @@ static void DumpChar(int y, DumpState* D)
static void Align4(DumpState *D)
{
while(D->wrote&3)
while(D->wrote&3 && D->status==0)
DumpChar(0,D);
}
......
......@@ -201,7 +201,7 @@ static void genCodeRecs (const codeRecord *rec, ushort len,
for (i = start; i < start+len; i++, c++) {
if (*c == 0xFF)
b++, c++;
m +=!(*c & 0x80) ? *c & 0x7F : 2 << *c;
m += (*c & 0x80) ? 2 << (*c & 0x1F) : *c;
*p++ = (codeRecord) {i, b, last + 1, (last = m)};
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment