Skip to content

Commit

Permalink
ref[js]: deserialization Long class to numbe of long
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysunxiao committed Apr 23, 2024
1 parent 1ac05c5 commit f7ad0e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ const ByteBuffer = function() {
}
}
}
return readInt64(new Uint8Array(buffer.slice(0, count)));
return readInt64(new Uint8Array(buffer.slice(0, count))).toNumber();
};

this.writeFloat = function(value) {
Expand Down
2 changes: 1 addition & 1 deletion protocol/src/test/javascript/zfoojs/buffer/ByteBuffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ const ByteBuffer = function() {
}
}
}
return readInt64(new Uint8Array(buffer.slice(0, count)));
return readInt64(new Uint8Array(buffer.slice(0, count))).toNumber();
};

this.writeFloat = function(value) {
Expand Down

0 comments on commit f7ad0e0

Please sign in to comment.