Skip to content

Commit

Permalink
[core] fix get_segment for const context
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelKoch committed Aug 9, 2024
1 parent 2268382 commit 5bca2bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/base/segmented_array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct device_segmented_array {
T* end;
};

constexpr segment get_segment(size_type segment_id)
constexpr segment get_segment(size_type segment_id) const
{
GKO_ASSERT(segment_id < (offsets_end - offsets_begin));
return {flat_begin + offsets_begin[segment_id],
Expand Down

0 comments on commit 5bca2bb

Please sign in to comment.