Skip to content

Commit

Permalink
Fix improper initialization of degree_type (#4755)
Browse files Browse the repository at this point in the history
Closes #4734 

Variable `degree_type` was being improperly initialized from its uninitialized self rather than from `degree_type_`.

Authors:
  - Chuck Hastings (https://github.com/ChuckHastings)

Approvers:
  - Seunghwa Kang (https://github.com/seunghwak)

URL: #4755
  • Loading branch information
ChuckHastings authored Nov 15, 2024
1 parent d493216 commit 4d941f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/c_api/core_number.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ struct core_number_functor : public cugraph::c_api::abstract_functor {
rmm::device_uvector<edge_t> core_numbers(graph_view.local_vertex_partition_range_size(),
handle_.get_stream());

auto degree_type = reinterpret_cast<cugraph::k_core_degree_type_t>(degree_type);
auto degree_type = reinterpret_cast<cugraph::k_core_degree_type_t>(degree_type_);

cugraph::core_number<vertex_t, edge_t, multi_gpu>(handle_,
graph_view,
Expand Down

0 comments on commit 4d941f2

Please sign in to comment.