Browse Source

Fix buffer.toString('hex')

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
ab190d38b7
  1. 2
      lib/buffer.js

2
lib/buffer.js

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

Loading…
Cancel
Save