Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

actually coerce the type in `ref.alloc()`

  • Loading branch information...
commit 675753cbfb59a1fa1765c148f8da2d7ad5101ed5 1 parent 483265e
@TooTallNate authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/ref.js
View
3  lib/ref.js
@@ -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) {
Please sign in to comment.
Something went wrong with that request. Please try again.