Fixed clearerr actually doing nothing

This commit is contained in:
Tom Almeida
2018-03-20 23:43:42 +08:00
parent d8139238e7
commit dbc3e413cc
+1 -1
View File
@@ -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]