Skip to content

Commit ca76225

Browse files
committed
fix cppcheck
1 parent 6a4fdba commit ca76225

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/data_structures/dsu/dsu.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ struct dsu {
77
bool join(int a, int b) {
88
if ((a = go(a)) == (b = go(b))) return 0;
99
if (e[a] > e[b]) swap(a, b);
10-
return e[a] += e[b], e[b] = a, 1;
10+
return e[a] += e[b], e[b] = a;
1111
}
1212
};

0 commit comments

Comments
 (0)