Skip to content

Commit

Permalink
Fix initialisation of array for $seps
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeweerd committed Sep 6, 2023
1 parent efd976c commit 1b7e035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Text/Diff/Engine/native.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ function _diag($xoff, $xlim, $yoff, $ylim, $nchunks)
}
}

$seps[] = $flip ? array($yoff, $xoff) : array($xoff, $yoff);
$seps = array($flip ? array($yoff, $xoff) : array($xoff, $yoff));
$ymid = $ymids[$this->lcs];
for ($n = 0; $n < $nchunks - 1; $n++) {
$x1 = $xoff + (int)(($numer + ($xlim - $xoff) * $n) / $nchunks);
Expand Down

0 comments on commit 1b7e035

Please sign in to comment.