Skip to content

Commit 04bab22

Browse files
committedSep 13, 2020
:lipstick
1 parent a20d878 commit 04bab22

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎mod.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ const myers_x = (b: string, a: string) => {
4040
const phc = [];
4141
const hsize = Math.ceil(n / 32);
4242
const vsize = Math.ceil(m / 32);
43-
let score = m;
4443
for (let i = 0; i < hsize; i++) {
4544
phc[i] = -1;
4645
mhc[i] = 0;
@@ -54,7 +53,6 @@ const myers_x = (b: string, a: string) => {
5453
for (let k = start; k < vlen; k++) {
5554
peq[b.charCodeAt(k)] |= 1 << k;
5655
}
57-
score = m;
5856
for (let i = 0; i < n; i++) {
5957
const eq = peq[a.charCodeAt(i)];
6058
const pb = (phc[(i / 32) | 0] >>> i % 32) & 1;
@@ -85,7 +83,7 @@ const myers_x = (b: string, a: string) => {
8583
for (let k = start; k < vlen; k++) {
8684
peq[b.charCodeAt(k)] |= 1 << k;
8785
}
88-
score = m;
86+
let score = m;
8987
for (let i = 0; i < n; i++) {
9088
const eq = peq[a.charCodeAt(i)];
9189
const pb = (phc[(i / 32) | 0] >>> i % 32) & 1;

0 commit comments

Comments
 (0)
Please sign in to comment.