Skip to content

Commit df7e55c

Browse files
committed
remove shadow
1 parent b2cb30b commit df7e55c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/strings/suffix_array/suffix_array_short.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ auto sa_short(const auto& s) {
1818
vi x(sa_inv);
1919
auto cmp = [&](int i1, int i2) {
2020
rep(k, 0, b) {
21-
int a = i1 + j * k < n ? x[i1 + j * k] : -1;
22-
int b = i2 + j * k < n ? x[i2 + j * k] : -1;
23-
if (a != b) return a < b;
21+
int y = i1 + j * k < n ? x[i1 + j * k] : -1;
22+
int z = i2 + j * k < n ? x[i2 + j * k] : -1;
23+
if (y != z) return y < z;
2424
}
2525
return false;
2626
};

0 commit comments

Comments
 (0)