balanced_quicksort.h: (qsb_divide) Replace "*end" by "*(end - 1)" in assertion.
2008-07-10 Johannes Singler <singler@ira.uka.de> * include/parallel/balanced_quicksort.h: (qsb_divide) Replace "*end" by "*(end - 1)" in assertion. From-SVN: r137691
This commit is contained in:
parent
a182fb6bfe
commit
38a28aabc1
2 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-07-10 Johannes Singler <singler@ira.uka.de>
|
||||
|
||||
* include/parallel/balanced_quicksort.h:
|
||||
(qsb_divide) Replace "*end" by "*(end - 1)" in assertion.
|
||||
|
||||
2008-07-09 Benjamin Kosnik <bkoz@redhat.com>
|
||||
|
||||
PR libstdc++/36451
|
||||
|
|
|
@ -122,11 +122,11 @@ template<typename RandomAccessIterator, typename Comparator>
|
|||
|
||||
_GLIBCXX_PARALLEL_ASSERT(
|
||||
(!comp(*pivot_pos, *begin) && !comp(*(begin + n / 2), *pivot_pos))
|
||||
|| (!comp(*pivot_pos, *begin) && !comp(*end, *pivot_pos))
|
||||
|| (!comp(*pivot_pos, *begin) && !comp(*(end - 1), *pivot_pos))
|
||||
|| (!comp(*pivot_pos, *(begin + n / 2)) && !comp(*begin, *pivot_pos))
|
||||
|| (!comp(*pivot_pos, *(begin + n / 2)) && !comp(*end, *pivot_pos))
|
||||
|| (!comp(*pivot_pos, *end) && !comp(*begin, *pivot_pos))
|
||||
|| (!comp(*pivot_pos, *end) && !comp(*(begin + n / 2), *pivot_pos)));
|
||||
|| (!comp(*pivot_pos, *(begin + n / 2)) && !comp(*(end - 1), *pivot_pos))
|
||||
|| (!comp(*pivot_pos, *(end - 1)) && !comp(*begin, *pivot_pos))
|
||||
|| (!comp(*pivot_pos, *(end - 1)) && !comp(*(begin + n / 2), *pivot_pos)));
|
||||
#endif
|
||||
|
||||
// Swap pivot value to end.
|
||||
|
|
Loading…
Add table
Reference in a new issue