We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc76dd2 commit 40d1ad5Copy full SHA for 40d1ad5
subspace/containers/slice.h
@@ -60,8 +60,7 @@ class [[sus_trivial_abi]] Slice {
60
static constexpr inline Slice from_raw_parts(::sus::marker::UnsafeFnMarker,
61
T* data,
62
::sus::usize len) noexcept {
63
- ::sus::check(len.primitive_value <=
64
- static_cast<size_t>(isize::MAX_PRIMITIVE));
+ ::sus::check(size_t{len} <= size_t{isize::MAX_PRIMITIVE});
65
return Slice(data, len);
66
}
67
0 commit comments