Merge pull request #10 from kpieckiel/davidc
Change shift left operator to exponent operator to avoid overflow
This commit is contained in:
commit
d528098ea6
@ -370,7 +370,7 @@ function network_address(ip, mask)
|
||||
|
||||
function subnet_addresses(mask)
|
||||
{
|
||||
return 1<<(32-mask);
|
||||
return 2**(32-mask);
|
||||
}
|
||||
|
||||
function subnet_last_address(subnet, mask)
|
||||
|
Loading…
Reference in New Issue
Block a user