Skip to content

Commit e71915e

Browse files
committed
revert calc of first row in init loop
1 parent f1292ab commit e71915e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

index.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,12 @@ module.exports = (function()
6161

6262
var vector = new Array(la << 1);
6363

64-
bx0 = b.charCodeAt(offset);
65-
dd = 1;
66-
for (y = 0; y < la; y++) {
64+
for (y = 0; y < la;) {
6765
vector[la + y] = a.charCodeAt(offset + y);
68-
vector[y] = dd = dd < y ? dd + 1 : bx0 === vector[la + y] ? y : y + 1;
66+
vector[y] = ++y;
6967
}
7068

71-
for (x = 1; (x + 3) < lb;) {
69+
for (x = 0; (x + 3) < lb;) {
7270
bx0 = b.charCodeAt(offset + (d0 = x));
7371
bx1 = b.charCodeAt(offset + (d1 = x + 1));
7472
bx2 = b.charCodeAt(offset + (d2 = x + 2));

0 commit comments

Comments
 (0)