WIP: fixing regressions

This commit is contained in:
nicoan
2026-04-15 14:18:20 -03:00
parent 24a481364f
commit da3ff538d6
4 changed files with 15 additions and 0 deletions
+3
View File
@@ -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!();
}
};
}