summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorEvan Wallace <evan.exe@gmail.com>2015-08-20 09:21:31 -0700
committerEvan Wallace <evan.exe@gmail.com>2015-10-14 21:15:57 -0700
commite1e8d53df60bc2315ae3f6f15e94f5c944e58c14 (patch)
treeade5880471af0a1896ea869ff38f8a6d0d49086c /js
parent57a6dd472f36de5e67c4df0e572570ab681d7a0e (diff)
downloadflatbuffers-e1e8d53df60bc2315ae3f6f15e94f5c944e58c14.tar.gz
flatbuffers-e1e8d53df60bc2315ae3f6f15e94f5c944e58c14.tar.bz2
flatbuffers-e1e8d53df60bc2315ae3f6f15e94f5c944e58c14.zip
Add low-level fuzzer, fix 64-bit issue it found
Diffstat (limited to 'js')
-rw-r--r--js/flatbuffers.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/flatbuffers.js b/js/flatbuffers.js
index 37995c9c..c9327e89 100644
--- a/js/flatbuffers.js
+++ b/js/flatbuffers.js
@@ -864,8 +864,8 @@ flatbuffers.ByteBuffer.prototype.writeInt32 = function(offset, value) {
* @param {flatbuffers.Long} value
*/
flatbuffers.ByteBuffer.prototype.writeInt64 = function(offset, value) {
- this.view_.setInt32(offset, value.low);
- this.view_.setInt32(offset + 4, value.high);
+ this.writeInt32(offset, value.low);
+ this.writeInt32(offset + 4, value.high);
};
/**