[all-commits] [llvm/llvm-project] 151a7d: [libc++] Fix ssize test that made an assumption ab...
Louis Dionne via All-commits
all-commits at lists.llvm.org
Thu Nov 25 10:13:02 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 151a7dafd31683c8db933a6a03e305184e1218f9
https://github.com/llvm/llvm-project/commit/151a7dafd31683c8db933a6a03e305184e1218f9
Author: Louis Dionne <ldionne.2 at gmail.com>
Date: 2021-11-25 (Thu, 25 Nov 2021)
Changed paths:
M libcxx/test/std/iterators/iterator.container/ssize.pass.cpp
Log Message:
-----------
[libc++] Fix ssize test that made an assumption about ptrdiff_t being 'long'
On some platforms like armv7m, the size() method of containers returns
unsigned long, while ptrdiff_t is just int. Hence, std::ssize_t ends up
being long, which is not the same as ptrdiff_t. This is usually not an
issue because std::ptrdiff_t is long, so everything works out, but it
breaks on some more exotic architectures.
Differential Revision: https://reviews.llvm.org/D114563
More information about the All-commits
mailing list