Skip to content

Commit

Permalink
Merge pull request #2 from wmamrak/main
Browse files Browse the repository at this point in the history
Resolved Compilation Error, Warnings, and Misleading Documentation
  • Loading branch information
rhysgoldstein authored May 15, 2024
2 parents 43ecb7e + c82400f commit 7317299
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/central64/grid/Array2D.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Array2D<T>::Array2D(Offset2D dims, const T& value)
template <typename T>
void Array2D<T>::Fill(const T& value)
{
data_.assign(std::begin(data_), std::end(data_), value);
data_.assign(dims_.X()*dims_.Y(), value);
}

template <typename T>
Expand Down
2 changes: 1 addition & 1 deletion include/central64/grid/Connections.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ template <int L>
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<L>& move) const { return bool(flags_ & (Unsigned<L>::unit << move.Index())); } ///< Check whether the specified `move` is connected.
constexpr bool IsAllConnected() const { return bool(flags_ == Unsigned<L>::max); } ///< Check whether all moves are connected.
Expand Down
2 changes: 1 addition & 1 deletion include/central64/search/PathTree.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<L>* gridPtr_;
Expand Down

0 comments on commit 7317299

Please sign in to comment.