From cb99f52448825f6caadda0fe7e98466710e3c832 Mon Sep 17 00:00:00 2001 From: karl Date: Thu, 15 Oct 2020 14:49:10 +0200 Subject: [PATCH] Fix compiler warnings --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 766c6e8..9348844 100644 --- a/main.cpp +++ b/main.cpp @@ -36,8 +36,8 @@ Maze solve_maze(const Maze &maze) { std::pop_heap(nodes.begin(), nodes.end(), [](MazeNode n1, MazeNode n2){return n1.priority > n2.priority;}); nodes.pop_back(); - int current_x = best.v[0]; - int current_y = best.v[1]; + uint current_x = best.v[0]; + uint current_y = best.v[1]; std::vector here = std::vector{current_x, current_y}; // Are we done?