Skip to content

Commit

Permalink
fix buf introduced in PR #92
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Jan 9, 2016
1 parent cd255a1 commit 7ab2cf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ function fromArrayBuffer (that, array) {
that.__proto__ = Buffer.prototype
} else {
// Fallback: Return an object instance of the Buffer class
that = fromTypedArray(that, array)
that = fromTypedArray(that, new Uint8Array(array))
}
return that
}
Expand Down

0 comments on commit 7ab2cf7

Please sign in to comment.