From e1e8d53df60bc2315ae3f6f15e94f5c944e58c14 Mon Sep 17 00:00:00 2001 From: Evan Wallace Date: Thu, 20 Aug 2015 09:21:31 -0700 Subject: Add low-level fuzzer, fix 64-bit issue it found --- js/flatbuffers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js') 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); }; /** -- cgit v1.2.3