[llvm-branch-commits] [libcxx] 6dc69d0 - [libc++][ranges] Fix incorrect integer typedef in `elements_view` test.

Tobias Hieta via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Mar 24 00:45:15 PDT 2023


Author: Konstantin Varlamov
Date: 2023-03-24T08:44:28+01:00
New Revision: 6dc69d034845b3b511b95746badf36ffe83163c8

URL: https://github.com/llvm/llvm-project/commit/6dc69d034845b3b511b95746badf36ffe83163c8
DIFF: https://github.com/llvm/llvm-project/commit/6dc69d034845b3b511b95746badf36ffe83163c8.diff

LOG: [libc++][ranges] Fix incorrect integer typedef in `elements_view` test.

Differential Revision: https://reviews.llvm.org/D142951

(cherry picked from commit 3fe3f9c51cbac91af741e53e96c89f633bd2a6ad)

Added: 
    

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

Removed: 
    


################################################################################
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
index 9af7b097aa4f..343bf8034630 100644
--- 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 <cassert>
 #include <concepts>
+#include <cstddef>
 #include <functional>
 #include <ranges>
 #include <tuple>
@@ -31,7 +32,7 @@ struct Iter {
   std::tuple<int>* it_;
 
   using value_type       = std::tuple<int>;
-  using 
diff erence_type  = intptr_t;
+  using 
diff erence_type  = std::ptr
diff _t;
   using iterator_concept = std::input_iterator_tag;
 
   constexpr decltype(auto) operator*() const { return *it_; }


        


More information about the llvm-branch-commits mailing list