[libc++][ranges] Fix incorrect integer type in `view_interface` tests.
authorKonstantin Varlamov <varconst@apple.com>
Thu, 12 Jan 2023 01:42:20 +0000 (17:42 -0800)
committervarconst <varconsteq@gmail.com>
Thu, 12 Jan 2023 01:43:10 +0000 (17:43 -0800)
commit17e6bd8070bb52b4178cf20f92bd429b11851870
treeb318f2496afb7ca90c4abe352995619e0f51da51
parente97caa9a2855bd928d1d4ff5503262baa92b3b7f
[libc++][ranges] Fix incorrect integer type in `view_interface` tests.

`ForwardIter() - ForwardIter()` returns `ptrdiff_t`, and converting it
to an unsigned type isn't guaranteed to produce the same type as
`size_t`.

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D141456
libcxx/test/std/ranges/range.utility/view.interface/view.interface.pass.cpp