From 61a4e64a6667bedaa882571c48a173ef5a4ba73b Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 6 May 2020 14:19:08 -0300 Subject: Back to old encoding of versions in binary files (Undoing part of commit f53eabeed8.) It is better to keep this encoding stable, so that all Lua versions can read at least the version of a binary file. --- ldump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ldump.c') diff --git a/ldump.c b/ldump.c index fbadbcc9..f848b669 100644 --- a/ldump.c +++ b/ldump.c @@ -196,7 +196,7 @@ static void dumpFunction (DumpState *D, const Proto *f, TString *psource) { static void dumpHeader (DumpState *D) { dumpLiteral(D, LUA_SIGNATURE); - dumpInt(D, LUAC_VERSION); + dumpByte(D, LUAC_VERSION); dumpByte(D, LUAC_FORMAT); dumpLiteral(D, LUAC_DATA); dumpByte(D, sizeof(Instruction)); -- cgit v1.2.3-55-g6feb