stdlib: implement qsort() as an introsort

This commit is contained in:
Alex Lyon
2018-05-13 02:51:54 -07:00
parent 0cabecd5b5
commit aa21e5fc3f
3 changed files with 233 additions and 2 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ use platform::types::*;
use vl::VaList;
pub unsafe fn printf<W: Write>(mut w: W, format: *const c_char, mut ap: VaList) -> c_int {
let format = unsafe { slice::from_raw_parts(format as *const u8, usize::max_value()) };
let format = slice::from_raw_parts(format as *const u8, usize::max_value());
let mut found_percent = false;
for &b in format.iter() {