Use Cell representation for errno

This commit is contained in:
Peter Limkilde Svendsen
2024-02-29 14:07:40 +00:00
committed by Jeremy Soller
parent 9ef3374c30
commit 9093f6bc47
36 changed files with 159 additions and 197 deletions
+2 -2
View File
@@ -886,7 +886,7 @@ unsafe fn inner_printf<W: Write>(w: W, format: *const c_char, mut ap: VaList) ->
let c = match char::from_u32(*ptr as _) {
Some(c) => c,
None => {
platform::errno = EILSEQ;
platform::errno.set(EILSEQ);
return Err(io::last_os_error());
}
};
@@ -922,7 +922,7 @@ unsafe fn inner_printf<W: Write>(w: W, format: *const c_char, mut ap: VaList) ->
let c = match char::from_u32(c as _) {
Some(c) => c,
None => {
platform::errno = EILSEQ;
platform::errno.set(EILSEQ);
return Err(io::last_os_error());
}
};