correct size calculation

This commit is contained in:
s2ks 2022-05-28 15:27:32 +02:00
parent c88d3bcf85
commit f066c0f01e

@ -60,7 +60,7 @@ export function HammingEncodeProperly(data: number): string {
let m = 1;
while (2 ** (2 ** m - m - 1) < data) {
while (((2**((2**m) - m - 1)) - 1) < data) {
m++;
}