Fix buffer.toString('hex')

This commit is contained in:
Ryan Dahl 2011-03-14 18:23:01 -07:00
parent 3c0dd8196a
commit ab190d38b7

View File

@ -42,7 +42,7 @@ SlowBuffer.prototype.hexSlice = function(start, end) {
var len = this.length;
if (!start || start < 0) start = 0;
if (end < 0 || start + end > len) end = len - start;
if (end < 0) end = len - start;
var out = '';
for (var i = start; i < end; i ++) {