|
|
@ -241,7 +241,7 @@ public final class QrCode {
|
|
|
|
int rem = data;
|
|
|
|
int rem = data;
|
|
|
|
for (int i = 0; i < 10; i++)
|
|
|
|
for (int i = 0; i < 10; i++)
|
|
|
|
rem = (rem << 1) ^ ((rem >>> 9) * 0x537);
|
|
|
|
rem = (rem << 1) ^ ((rem >>> 9) * 0x537);
|
|
|
|
int bits = (data << 10 | rem) ^ 0x5412; // uint15
|
|
|
|
int bits = (data << 10 | rem) ^ 0x5412; // uint15
|
|
|
|
assert bits >>> 15 == 0;
|
|
|
|
assert bits >>> 15 == 0;
|
|
|
|
|
|
|
|
|
|
|
|
// Draw first copy
|
|
|
|
// Draw first copy
|
|
|
|