[libcxx-commits] [PATCH] D142951: [libc++][ranges] Fix incorrect integer typedef in `elements_view` test.

Konstantin Varlamov via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jan 30 19:47:43 PST 2023


var-const created this revision.
Herald added a project: All.
var-const requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D142951

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


Index: libcxx/test/std/ranges/range.adaptors/range.elements/sentinel/minus.pass.cpp
===================================================================
--- libcxx/test/std/ranges/range.adaptors/range.elements/sentinel/minus.pass.cpp
+++ libcxx/test/std/ranges/range.adaptors/range.elements/sentinel/minus.pass.cpp
@@ -31,7 +31,7 @@
   std::tuple<int>* it_;
 
   using value_type       = std::tuple<int>;
-  using difference_type  = intptr_t;
+  using difference_type  = ptrdiff_t;
   using iterator_concept = std::input_iterator_tag;
 
   constexpr decltype(auto) operator*() const { return *it_; }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142951.493476.patch
Type: text/x-patch
Size: 599 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230131/e0719e78/attachment-0001.bin>


More information about the libcxx-commits mailing list