Skip to content

Commit 0a953b2

Browse files
committed
Made is_sparse constexpr and noexcept
Suggested review comment by @codereport
1 parent 344c9f3 commit 0a953b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jsrc/array.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ pointer_to_values(array x) -> int64_t* {
4040
return reinterpret_cast<int64_t*>(reinterpret_cast<C*>(x) + x->kchain.k);
4141
}
4242

43-
[[nodiscard]] inline auto
44-
is_sparse(array x) -> bool {
43+
[[nodiscard]] constexpr auto
44+
is_sparse(array x) noexcept -> bool {
4545
return (AT(x) & SPARSE) != 0;
4646
}
4747

0 commit comments

Comments
 (0)