diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2019-03-06 03:59:44 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2019-03-06 03:59:44 +0000 |
commit | 8eda3ad29d89317aa25cf2e7aaf8c785b32fc608 (patch) | |
tree | 0e7a72a662e62ff3259f96d65885e6065c036064 /libcxx/test/std/containers/views/span.objectrep/as_bytes.pass.cpp | |
parent | c2d6b84d3c7ec999ee2df9c3a061bd63c147f977 (diff) | |
download | bcm5719-llvm-8eda3ad29d89317aa25cf2e7aaf8c785b32fc608.tar.gz bcm5719-llvm-8eda3ad29d89317aa25cf2e7aaf8c785b32fc608.zip |
Eradicate all the ptrdiff_ts in span left over from applying P1227. A couple of other minor cleanups. NFC
llvm-svn: 355481
Diffstat (limited to 'libcxx/test/std/containers/views/span.objectrep/as_bytes.pass.cpp')
-rw-r--r-- | libcxx/test/std/containers/views/span.objectrep/as_bytes.pass.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/test/std/containers/views/span.objectrep/as_bytes.pass.cpp b/libcxx/test/std/containers/views/span.objectrep/as_bytes.pass.cpp index 12772c42f16..ff1038e0b11 100644 --- a/libcxx/test/std/containers/views/span.objectrep/as_bytes.pass.cpp +++ b/libcxx/test/std/containers/views/span.objectrep/as_bytes.pass.cpp @@ -10,11 +10,11 @@ // <span> -// template <class ElementType, ptrdiff_t Extent> +// template <class ElementType, size_t Extent> // span<const byte, // Extent == dynamic_extent // ? dynamic_extent -// : static_cast<ptrdiff_t>(sizeof(ElementType)) * Extent> +// : sizeof(ElementType) * Extent> // as_bytes(span<ElementType, Extent> s) noexcept; @@ -36,7 +36,7 @@ void testRuntimeSpan(Span sp) if (sp.extent == std::dynamic_extent) assert(spBytes.extent == std::dynamic_extent); else - assert(spBytes.extent == static_cast<std::ptrdiff_t>(sizeof(typename Span::element_type)) * sp.extent); + assert(spBytes.extent == sizeof(typename Span::element_type) * sp.extent); assert((void *) spBytes.data() == (void *) sp.data()); assert(spBytes.size() == sp.size_bytes()); |