summaryrefslogtreecommitdiff
path: root/src/ldump.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-06-18 23:36:02 +1000
committerdaurnimator <quae@daurnimator.com>2017-06-19 00:09:51 +1000
commit4723651910e6e6f5cff6f0dce51c00777cc213ce (patch)
treefb9072070beb0564d4ddf76bdbb77cecbfb16ee7 /src/ldump.js
parent61997410c91b75b0bc54790dbed9ea104854df01 (diff)
downloadfengari-4723651910e6e6f5cff6f0dce51c00777cc213ce.tar.gz
fengari-4723651910e6e6f5cff6f0dce51c00777cc213ce.tar.bz2
fengari-4723651910e6e6f5cff6f0dce51c00777cc213ce.zip
Change size_t from 8 bytes to 4 bytes
JavaScript cannot perform arithmetic on 8byte (i.e. 64bit) numbers
Diffstat (limited to 'src/ldump.js')
-rw-r--r--src/ldump.js2
1 files changed, 1 insertions, 1 deletions
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