Skip to content

Commit

Permalink
fix: fixes undefined 'k' due to scoped 'let'
Browse files Browse the repository at this point in the history
  • Loading branch information
wickedest committed Mar 11, 2024
1 parent 5e4dfc9 commit e1db3c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diff.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ diff.prototype._sms = function(lhs_ctx, lhs_lower, lhs_upper, rhs_ctx, rhs_lower
}
}
// Extend the reverse path.
for (k = kup - d; k <= kup + d; k += 2) {
for (let k = kup - d; k <= kup + d; k += 2) {
// find the only or better starting point
if (k === kup + d) {
x = vector_u[offset_up + k - 1]; // up
Expand Down

0 comments on commit e1db3c4

Please sign in to comment.