Fix packInt64

This commit is contained in:
Matt 2014-02-18 13:57:52 -07:00
parent 9edaa33c8b
commit 5328250d06

View File

@ -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;
};