commit | d11fc0a5f8b10fa315f20942e53b49bfaf4a71ba | [log] [tgz] |
---|---|---|
author | Brett Gutstein <brett.gutstein@cst.cam.ac.uk> | Fri Dec 04 16:05:03 2020 -0500 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Dec 08 16:51:43 2020 -0800 |
tree | 716f35198bf3d74e7f1dc1a959a531fc753d02c2 | |
parent | d67a04736041f7fcb8604f96f87328db6fe640db [diff] |
[libc++] fix std::sort(T**, T**) previously, invocations of std::sort(T**, T**) casted the arguments to (size_t *). this breaks sorting on systems for which pointers don't fit in a size_t. change the cast to (uintptr_t *) and add a test. Differential Revision: https://reviews.llvm.org/D92190 GitOrigin-RevId: 297c839e2d22f9bc37f5f8cca7eb5924b49716d2