Skip to content

Commit

Permalink
whitespace google#2
Browse files Browse the repository at this point in the history
  • Loading branch information
unintellisense committed Jan 8, 2019
1 parent 3732e5e commit 008f531
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions js/flatbuffers.js
Original file line number Diff line number Diff line change
Expand Up @@ -1043,8 +1043,8 @@ flatbuffers.ByteBuffer.prototype.writeInt64 = function(offset, value) {
* @param {flatbuffers.Long} value
*/
flatbuffers.ByteBuffer.prototype.writeUint64 = function(offset, value) {
this.writeUint32(offset, value.low);
this.writeUint32(offset + 4, value.high);
this.writeUint32(offset, value.low);
this.writeUint32(offset + 4, value.high);
};

/**
Expand Down Expand Up @@ -1074,14 +1074,14 @@ flatbuffers.ByteBuffer.prototype.writeFloat64 = function(offset, value) {
*/
flatbuffers.ByteBuffer.prototype.getBufferIdentifier = function() {
if (this.bytes_.length < this.position_ + flatbuffers.SIZEOF_INT +
flatbuffers.FILE_IDENTIFIER_LENGTH) {
flatbuffers.FILE_IDENTIFIER_LENGTH) {
throw new Error(
'FlatBuffers: ByteBuffer is too short to contain an identifier.');
'FlatBuffers: ByteBuffer is too short to contain an identifier.');
}
var result = "";
for (var i = 0; i < flatbuffers.FILE_IDENTIFIER_LENGTH; i++) {
result += String.fromCharCode(
this.readInt8(this.position_ + flatbuffers.SIZEOF_INT + i));
this.readInt8(this.position_ + flatbuffers.SIZEOF_INT + i));
}
return result;
};
Expand Down

0 comments on commit 008f531

Please sign in to comment.