Преглед на файлове

Fixed clearerr actually doing nothing

Tom Almeida преди 7 години
родител
ревизия
dbc3e413cc
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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]