Skip to content

Commit e9e7f41

Browse files
committed
Parametrise pointer_to_values() return type
1 parent e179cb9 commit e9e7f41

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

jsrc/array.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ num(int64_t n) {
3535
return reinterpret_cast<array>(Bnum[n - NUMMIN]);
3636
}
3737

38+
template <typename Value = int64_t>
3839
[[nodiscard]] inline auto
39-
pointer_to_values(array x) -> int64_t* {
40-
return reinterpret_cast<int64_t*>(reinterpret_cast<C*>(x) + x->kchain.k);
40+
pointer_to_values(array x) -> Value* {
41+
return reinterpret_cast<Value*>(reinterpret_cast<C*>(x) + x->kchain.k);
4142
}
4243

4344
[[nodiscard]] constexpr auto

0 commit comments

Comments
 (0)