GUAC-1138: Use "ones" instead of "1's".
This commit is contained in:
1 parent
d65853422c
commit
cc96b0ee33
1 file changed
+2
-2
@@ -113,13 +113,13 @@ angular.module('list').factory('IPv6Network', [
|
||||
// Only generate up to 128 bits
|
||||
bits = Math.min(128, bits);
|
||||
|
||||
// Add any contiguous 16-bit sections of 1's
|
||||
// Add any contiguous 16-bit sections of ones
|
||||
while (bits >= 16) {
|
||||
netmask.push(0xFFFF);
|
||||
bits -= 16;
|
||||
}
|
||||
|
||||
// Add remaining 1's
|
||||
// Add remaining ones
|
||||
if (bits > 0 && bits <= 16)
|
||||
netmask.push(0xFFFF & (0xFFFF << (16 - bits)));
|
||||
|
||||
|
||||
Reference in new issue
Block a user