summaryrefslogtreecommitdiff
path: root/js/flatbuffers.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/flatbuffers.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);
};
/**