Skip to content

Commit

Permalink
fix(#183): fixes undefined 'k' due to scoped 'let'
Browse files Browse the repository at this point in the history
  • Loading branch information
wickedest authored Mar 11, 2024
1 parent b09671f commit 02e383d
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 02e383d

Please sign in to comment.