aboutsummaryrefslogtreecommitdiff
path: root/src/lundump.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/lundump.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/lundump.js')
-rw-r--r--src/lundump.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lundump.js b/src/lundump.js
index 946efa6..17cdc70 100644
--- a/src/lundump.js
+++ b/src/lundump.js
@@ -17,7 +17,7 @@ class BytecodeParser {
constructor(L, Z, name) {
this.intSize = 4;
- this.size_tSize = 8;
+ this.size_tSize = 4;
this.instructionSize = 4;
this.integerSize = 4;
this.numberSize = 8;
@@ -237,7 +237,7 @@ class BytecodeParser {
this.numberSize = this.readByte();
this.checksize(this.intSize, 4, "int");
- this.checksize(this.size_tSize, 8, "size_t");
+ this.checksize(this.size_tSize, 4, "size_t");
this.checksize(this.instructionSize, 4, "instruction");
this.checksize(this.integerSize, 4, "integer");
this.checksize(this.numberSize, 8, "number");