WIP: fixing regressions
This commit is contained in:
@@ -180,6 +180,7 @@ pub unsafe fn inner_scanf<T: Kind>(
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
let pointer = c == 'p';
|
||||
// Pointers aren't automatic, but we do want to parse "0x"
|
||||
let auto = c == 'i' || pointer;
|
||||
@@ -191,6 +192,7 @@ pub unsafe fn inner_scanf<T: Kind>(
|
||||
_ => 10,
|
||||
};
|
||||
|
||||
|
||||
let mut n = String::new();
|
||||
let mut dot = false;
|
||||
|
||||
@@ -364,6 +366,7 @@ pub unsafe fn inner_scanf<T: Kind>(
|
||||
if let Some(ptr) = ptr {
|
||||
*ptr = 0;
|
||||
matched += 1;
|
||||
read!();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user