Skip to content

Commit

Permalink
Fixes issue on 32-bit systems with showing capacity/allocation of net…
Browse files Browse the repository at this point in the history
…works: Issue #0000602
  • Loading branch information
rhysm committed Sep 14, 2012
1 parent e7ddf22 commit bc51345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wwwroot/inc/functions.php
Expand Up @@ -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'
Expand Down

0 comments on commit bc51345

Please sign in to comment.