From a7221210d7728f93b73b9bcae6710a715dede493 Mon Sep 17 00:00:00 2001 From: Wojciech Mamrak Date: Tue, 14 May 2024 12:05:13 +0200 Subject: [PATCH 1/3] Fixed compilation error in Array2D::Fill --- include/central64/grid/Array2D.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/central64/grid/Array2D.hpp b/include/central64/grid/Array2D.hpp index f3ddbff..b2f13f7 100644 --- a/include/central64/grid/Array2D.hpp +++ b/include/central64/grid/Array2D.hpp @@ -56,7 +56,7 @@ Array2D::Array2D(Offset2D dims, const T& value) template void Array2D::Fill(const T& value) { - data_.assign(std::begin(data_), std::end(data_), value); + data_.assign(dims_.X()*dims_.Y(), value); } template From 32bc31682453712de4673eb79e24de8aa8976c9a Mon Sep 17 00:00:00 2001 From: Wojciech Mamrak Date: Tue, 14 May 2024 12:08:32 +0200 Subject: [PATCH 2/3] Fixed a misleading description --- include/central64/grid/Connections.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/central64/grid/Connections.hpp b/include/central64/grid/Connections.hpp index f8260af..b5f50c1 100644 --- a/include/central64/grid/Connections.hpp +++ b/include/central64/grid/Connections.hpp @@ -11,7 +11,7 @@ template class Connections { public: - constexpr Connections() = default; ///< Create a set of connections for which all moves are connected. + constexpr Connections() = default; ///< Create a set of connections for which no moves are connected. constexpr bool IsConnected(const Move& move) const { return bool(flags_ & (Unsigned::unit << move.Index())); } ///< Check whether the specified `move` is connected. constexpr bool IsAllConnected() const { return bool(flags_ == Unsigned::max); } ///< Check whether all moves are connected. From c82400f81805ab6152fe7106dea1ceb6788817f4 Mon Sep 17 00:00:00 2001 From: Wojciech Mamrak Date: Tue, 14 May 2024 12:10:45 +0200 Subject: [PATCH 3/3] Fixed compilation warnings --- include/central64/search/PathTree.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/central64/search/PathTree.hpp b/include/central64/search/PathTree.hpp index 0117336..a5ceafc 100644 --- a/include/central64/search/PathTree.hpp +++ b/include/central64/search/PathTree.hpp @@ -65,7 +65,7 @@ class PathTree uint64_t searchID{ 0 }; // The ID of the search for which the node was last initialized. PathCost gCost{}; // The grid-based distance to the source. PathCost hCost{}; // The heuristic or estimated distance to the sample. - int64_t parentMoveIndex{}; // The index of the parent move. + int parentMoveIndex{}; // The index of the parent move. }; const Grid2D* gridPtr_;