diff options
| author | Louis Dionne <ldionne.2@gmail.com> | 2022-01-13 12:16:30 -0500 |
|---|---|---|
| committer | Louis Dionne <ldionne.2@gmail.com> | 2022-01-27 10:57:54 -0500 |
| commit | d27cbfa9d366c2f6620770f514f612aa1bb0ecb6 (patch) | |
| tree | be0f43f919cdc8d47564e1e6e03a73ac548de71b /lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py | |
| parent | 0902eb30ad714da3ed6c6a744337c9b52427f366 (diff) | |
[libc++] Fix bug in ranges::advance
In `ranges::advance(iter, n, bound)`, we'd incorrectly handle the case
where bound < iter and n is 0:
int a[10];
int *p = a+5;
int *bound = a+3;
std::ranges::advance(p, 0, bound);
assert(p - a == 5); // we'd return 3 before this patch
This was caused by an incorrect handling of 0 inside __magnitude_geq.
Differential Revision: https://reviews.llvm.org/D117240
Diffstat (limited to 'lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py')
0 files changed, 0 insertions, 0 deletions
