From 4d941f2beec85116d2243cf0865160abe8790459 Mon Sep 17 00:00:00 2001 From: Chuck Hastings <45364586+ChuckHastings@users.noreply.github.com> Date: Thu, 14 Nov 2024 21:09:36 -0500 Subject: [PATCH] Fix improper initialization of degree_type (#4755) 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: https://github.com/rapidsai/cugraph/pull/4755 --- cpp/src/c_api/core_number.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/src/c_api/core_number.cpp b/cpp/src/c_api/core_number.cpp index b00a8d979e3..b6854dc73b4 100644 --- a/cpp/src/c_api/core_number.cpp +++ b/cpp/src/c_api/core_number.cpp @@ -76,7 +76,7 @@ struct core_number_functor : public cugraph::c_api::abstract_functor { rmm::device_uvector core_numbers(graph_view.local_vertex_partition_range_size(), handle_.get_stream()); - auto degree_type = reinterpret_cast(degree_type); + auto degree_type = reinterpret_cast(degree_type_); cugraph::core_number(handle_, graph_view,