Skip to content

Commit 23fc949

Browse files
committed
cheaper to compare pointers...
1 parent 39fee26 commit 23fc949

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

08/solve.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ struct Part1 {
6464
for (auto &[c, cpoints] : input.points)
6565
for (const P &a : cpoints)
6666
for (const P &b : cpoints) {
67-
if (a == b)
67+
if (&a == &b)
6868
continue;
6969
auto anti = b + (b - a);
7070
if (input.dimensions.contains(anti))

0 commit comments

Comments
 (0)