From 4723651910e6e6f5cff6f0dce51c00777cc213ce Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sun, 18 Jun 2017 23:36:02 +1000 Subject: Change size_t from 8 bytes to 4 bytes JavaScript cannot perform arithmetic on 8byte (i.e. 64bit) numbers --- src/ldump.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ldump.js') diff --git a/src/ldump.js b/src/ldump.js index a2abbed..49372f9 100644 --- a/src/ldump.js +++ b/src/ldump.js @@ -170,7 +170,7 @@ const DumpHeader = function(D) { let cdata = LUAC_DATA.split('').map(e => e.charCodeAt(0)); DumpBlock(cdata, cdata.length, D); DumpByte(4, D); // intSize - DumpByte(8, D); // size_tSize + DumpByte(4, D); // size_tSize DumpByte(4, D); // instructionSize DumpByte(4, D); // integerSize DumpByte(8, D); // numberSize -- cgit v1.2.3-54-g00ecf