summaryrefslogtreecommitdiffstats
path: root/inc/iputil.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/iputil.inc.php')
-rw-r--r--inc/iputil.inc.php5
1 files changed, 0 insertions, 5 deletions
diff --git a/inc/iputil.inc.php b/inc/iputil.inc.php
index caac7349..a50f22eb 100644
--- a/inc/iputil.inc.php
+++ b/inc/iputil.inc.php
@@ -58,9 +58,6 @@ class IpUtil
$ip = ip2long($cidr);
if ($ip === false)
return null;
- if (PHP_INT_SIZE === 4) {
- $ip = sprintf('%u', $ip);
- }
return ['start' => $ip, 'end' => $ip];
}
$ip = $parts[0];
@@ -75,8 +72,6 @@ class IpUtil
if ($ip === false)
return null;
$bits = (int)((2 ** (32 - $bits)) - 1);
- if (PHP_INT_SIZE === 4)
- return ['start' => sprintf('%u', $ip & ~$bits), 'end' => sprintf('%u', $ip | $bits)];
return ['start' => $ip & ~$bits, 'end' => $ip | $bits];
}