changing how buffers are written

This commit is contained in:
bmc 2010-10-15 18:29:01 -04:00
parent 8cb44e3cf3
commit 1f63d84dee

View File

@ -19,10 +19,10 @@ BufferList.prototype.getByteLength = function(initial) {
BufferList.prototype.addInt32 = function(val, first) {
return this.add(Buffer([
(val >>> 24),
(val >>> 16),
(val >>> 8),
(val >>> 0)
(val >>> 24 & 0xFF),
(val >>> 16 & 0xFF),
(val >>> 8 & 0xFF),
(val >>> 0 & 0xFF)
]),first);
};