Browse Source

Fixed clearerr actually doing nothing

Tom Almeida 7 years ago
parent
commit
dbc3e413cc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/stdio/src/lib.rs

+ 1 - 1
src/stdio/src/lib.rs

@@ -180,7 +180,7 @@ impl Write for FILE {
 /// Clears EOF and ERR indicators on a stream
 #[no_mangle]
 pub extern "C" fn clearerr(stream: &mut FILE) {
-    stream.flags &= !(F_EOF & F_ERR);
+    stream.flags &= !(F_EOF | F_ERR);
 }
 
 #[no_mangle]