Merge pull request #10 from kpieckiel/davidc

Change shift left operator to exponent operator to avoid overflow
This commit is contained in:
davidc 2023-01-08 12:13:11 +00:00 committed by GitHub
commit d528098ea6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)