Skip to content

Commit

Permalink
Add missing initialization of node_cmp_ member.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmlarsen committed Oct 6, 2023
1 parent 0a37c2a commit 6a5799c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ template <typename T, typename C = std::less<T>, typename OPS = hash_ops<T>> cla
// We use this ordering of the edges in the adjacency matrix for
// exact compatibility with an older implementation.
struct IndirectCmp {
IndirectCmp(const std::vector<T> &nodes) : nodes_(nodes) {}
IndirectCmp(const std::vector<T> &nodes) : node_cmp_(), nodes_(nodes) {}
bool operator()(int a, int b) const
{
log_assert(static_cast<size_t>(a) < nodes_.size());
Expand Down

0 comments on commit 6a5799c

Please sign in to comment.