Skip to content
Browse files

Fixes issue on 32-bit systems with showing capacity/allocation of net…

…works: Issue #0000602
  • Loading branch information...
1 parent e7ddf22 commit bc51345f03aee6c11a6e0a18c5bbebe0e979262f @rhysm committed Sep 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 wwwroot/inc/functions.php
View
2 wwwroot/inc/functions.php
@@ -2266,7 +2266,7 @@ function ip4_range_size ($range)
function ip4_mask_size ($mask)
{
- return (0xffffffff >> $mask) + 1;
+ return bcdiv(0xffffffff , bcpow(2, $mask)) + 1;
}
// returns array with keys 'ip', 'ip_bin', 'mask', 'mask_bin'

0 comments on commit bc51345

Please sign in to comment.
Something went wrong with that request. Please try again.