diff --git a/libcxx/test/std/ranges/range.adaptors/range.elements/sentinel/minus.pass.cpp b/libcxx/test/std/ranges/range.adaptors/range.elements/sentinel/minus.pass.cpp --- a/libcxx/test/std/ranges/range.adaptors/range.elements/sentinel/minus.pass.cpp +++ b/libcxx/test/std/ranges/range.adaptors/range.elements/sentinel/minus.pass.cpp @@ -20,6 +20,7 @@ #include #include +#include #include #include #include @@ -31,7 +32,7 @@ std::tuple* it_; using value_type = std::tuple; - using difference_type = intptr_t; + using difference_type = std::ptrdiff_t; using iterator_concept = std::input_iterator_tag; constexpr decltype(auto) operator*() const { return *it_; }