main
Brett 2024-12-08 16:37:38 -05:00
parent 5831764473
commit b7c8125094
2 changed files with 2 additions and 3 deletions

View File

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.25) cmake_minimum_required(VERSION 3.25)
project(Advent-Of-Code-2024 VERSION 0.0.7) project(Advent-Of-Code-2024 VERSION 0.0.8)
option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF) option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF)
option(ENABLE_UBSAN "Enable the ub sanitizer" OFF) option(ENABLE_UBSAN "Enable the ub sanitizer" OFF)

View File

@ -86,9 +86,8 @@ namespace day8
{ {
if (i == x && y == j) if (i == x && y == j)
continue; continue;
const auto current = get(i, j);
if (compare == current) if (compare == get(i, j))
{ {
const int dist_x = i - x; const int dist_x = i - x;
const int dist_y = j - y; const int dist_y = j - y;