mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-30 06:12:22 -06:00
*Core: New Sort fixed to compile with MSC
git-svn-id: svn://ultimatepp.org/upp/trunk@5250 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
26f74b7d33
commit
a5e853a353
1 changed files with 3 additions and 3 deletions
|
|
@ -832,9 +832,9 @@ void Sort(I l, I h, const Less& less)
|
|||
}
|
||||
break;
|
||||
}
|
||||
IterSwap(l, l + Random(count)); // try some other random elements for median pivot
|
||||
IterSwap(middle, l + Random(count));
|
||||
IterSwap(h - 1, l + Random(count));
|
||||
IterSwap(l, l + (int)Random(count)); // try some other random elements for median pivot
|
||||
IterSwap(middle, l + (int)Random(count));
|
||||
IterSwap(h - 1, l + (int)Random(count));
|
||||
pass++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue