Skip to content

Commit

Permalink
actually coerce the type in ref.alloc()
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed May 17, 2012
1 parent 483265e commit 675753c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ref.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ exports.set = function set (buffer, offset, value, type) {
* ```
*/

exports.alloc = function alloc (type, value) {
exports.alloc = function alloc (_type, value) {
var type = exports.coerceType(_type)
debug('allocating Buffer for type with "size"', type.size)
var size
if (type.indirection === 1) {
Expand Down

0 comments on commit 675753c

Please sign in to comment.