Skip to content

Commit b2e3344

Browse files
author
Ivan Dudarev
committed
resolved #6 issue
1 parent a0f587e commit b2e3344

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Wizard.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -818,9 +818,9 @@ public static function parseInetnum($prefixOrInetnum)
818818
if (false === $ipnum or false === $prefix) {
819819
return $result;
820820
}
821-
$netsize = 1 << (32 - $prefix);
821+
$netsize = pow(2, (32 - $prefix));
822822
$end_num = $ipnum + $netsize - 1;
823-
if ($end_num >= (1 << 32)) {
823+
if ($end_num >= pow(2, 32)) {
824824
return $result;
825825
}
826826
$result['first'] = $ipnum;

0 commit comments

Comments
 (0)