We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
count
1 parent 0c35573 commit a37c5a5Copy full SHA for a37c5a5
library/std/src/sys/stdio/vexos.rs
@@ -56,6 +56,7 @@ impl io::Write for Stdout {
56
57
let count = unsafe {
58
vex_sdk::vexSerialWriteBuffer(STDIO_CHANNEL, chunk.as_ptr(), chunk.len() as u32)
59
+ as usize;
60
};
61
if count < 0 {
62
return Err(io::Error::new(
@@ -77,7 +78,7 @@ impl io::Write for Stdout {
77
78
}
79
80
- Ok(written as usize)
81
+ Ok(written)
82
83
84
fn flush(&mut self) -> io::Result<()> {
0 commit comments