mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-13 11:13:50 +01:00
correct size calculation
This commit is contained in:
parent
c88d3bcf85
commit
f066c0f01e
@ -60,7 +60,7 @@ export function HammingEncodeProperly(data: number): string {
|
|||||||
|
|
||||||
let m = 1;
|
let m = 1;
|
||||||
|
|
||||||
while (2 ** (2 ** m - m - 1) < data) {
|
while (((2**((2**m) - m - 1)) - 1) < data) {
|
||||||
m++;
|
m++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user