diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-07-17 19:29:57 +0200 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-07-17 19:29:57 +0200 |
| commit | 793c2ed9cfe2629c417a7fbb218712ff4f03ec9e (patch) | |
| tree | f8394439823ac0b9d7de9bca37308d2377f2cb60 /src/diff.hh | |
| parent | d90cd6de7716644e5ec5c6d91cea25eeb88aae3e (diff) | |
Slight style change
Diffstat (limited to 'src/diff.hh')
| -rw-r--r-- | src/diff.hh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/diff.hh b/src/diff.hh index 306ed301..ea77f10b 100644 --- a/src/diff.hh +++ b/src/diff.hh @@ -167,9 +167,7 @@ Vector<Diff> find_diff(Iterator a, int N, Iterator b, int M, Equal eq = Equal{}) const int max = 2 * (N + M) + 1; Vector<int> data(2*max); Vector<Diff> diffs; - find_diff_rec(a, 0, N, b, 0, M, - data.data() + (N+M), data.data() + max + (N+M), - eq, diffs); + find_diff_rec(a, 0, N, b, 0, M, &data[N+M], &data[max + N+M], eq, diffs); return diffs; } |
