From 43f0ee22076face3b5ee6bae5d8d68bb74a39627 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Mon, 16 May 2016 18:39:57 -0700 Subject: [PATCH] minor. --- lib/bcoin/hd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bcoin/hd.js b/lib/bcoin/hd.js index ce0f85b0..76e84790 100644 --- a/lib/bcoin/hd.js +++ b/lib/bcoin/hd.js @@ -382,7 +382,7 @@ HD.parsePath = function parsePath(path, max) { if (!/^\d+$/.test(index)) throw new Error('Non-number path index.'); - index = +index; + index = parseInt(index, 10); if (hardened) index += constants.hd.HARDENED;