[all-commits] [llvm/llvm-project] 17e6bd: [libc++][ranges] Fix incorrect integer type in `vi...

Konstantin Varlamov via All-commits all-commits at lists.llvm.org
Wed Jan 11 17:43:25 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 17e6bd8070bb52b4178cf20f92bd429b11851870
      https://github.com/llvm/llvm-project/commit/17e6bd8070bb52b4178cf20f92bd429b11851870
  Author: Konstantin Varlamov <varconst at apple.com>
  Date:   2023-01-11 (Wed, 11 Jan 2023)

  Changed paths:
    M libcxx/test/std/ranges/range.utility/view.interface/view.interface.pass.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list