Skip to content

Commit

Permalink
lib: even better node 6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed May 11, 2022
1 parent 088c9e5 commit 8e6f28b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ip.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ ip.subnet = function (addr, mask) {
}
}

var numberOfAddresses = 2 ** (32 - maskLength);
var numberOfAddresses = Math.pow(2, 32 - maskLength);

return {
networkAddress: ip.fromLong(networkAddress),
Expand Down

0 comments on commit 8e6f28b

Please sign in to comment.