Fix packInt64
This commit is contained in:
parent
9edaa33c8b
commit
5328250d06
@ -203,7 +203,7 @@ exports.packUInt32BE = function(num){
|
||||
exports.packInt64LE = function(num){
|
||||
var buff = new Buffer(8);
|
||||
buff.writeUInt32LE(num % Math.pow(2, 32), 0);
|
||||
buff.writeUInt32LE(Math.floor(num / Math.pow(2, 32)), 5);
|
||||
buff.writeUInt32LE(Math.floor(num / Math.pow(2, 32)), 4);
|
||||
return buff;
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user