Skip to content

Commit 6dc69d0

Browse files
var-consttru
authored andcommitted
[libc++][ranges] Fix incorrect integer typedef in elements_view test.
Differential Revision: https://reviews.llvm.org/D142951 (cherry picked from commit 3fe3f9c)
1 parent 99af55f commit 6dc69d0

File tree

1 file changed

+2
-1
lines changed
  • libcxx/test/std/ranges/range.adaptors/range.elements/sentinel

1 file changed

+2
-1
lines changed

libcxx/test/std/ranges/range.adaptors/range.elements/sentinel/minus.pass.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
#include <cassert>
2222
#include <concepts>
23+
#include <cstddef>
2324
#include <functional>
2425
#include <ranges>
2526
#include <tuple>
@@ -31,7 +32,7 @@ struct Iter {
3132
std::tuple<int>* it_;
3233

3334
using value_type = std::tuple<int>;
34-
using difference_type = intptr_t;
35+
using difference_type = std::ptrdiff_t;
3536
using iterator_concept = std::input_iterator_tag;
3637

3738
constexpr decltype(auto) operator*() const { return *it_; }

0 commit comments

Comments
 (0)